|
2 | 2 | title: Run Office Scripts with Power Automate
|
3 | 3 | description: How to get Office Scripts for Excel working with a Power Automate workflow.
|
4 | 4 | ms.topic: integration
|
5 |
| -ms.date: 09/19/2023 |
| 5 | +ms.date: 11/10/2023 |
6 | 6 | ms.localizationpriority: medium
|
7 | 7 | ---
|
8 | 8 |
|
@@ -35,12 +35,26 @@ This opens a task pane with several options to begin connecting your Office Scri
|
35 | 35 | > [!TIP]
|
36 | 36 | > You can also start making a flow from the **More options (…)** menu on an individual script.
|
37 | 37 |
|
38 |
| -## Excel Online (Business) connector |
| 38 | +## Excel connector |
39 | 39 |
|
40 |
| -[Connectors](/connectors/connectors) are the bridges between Power Automate and applications. The [Excel Online (Business) connector](/connectors/excelonlinebusiness) gives your flows access to Excel workbooks. The "Run script" action lets you call any Office Script accessible through the selected workbook. You can also give your scripts input parameters so data can be provided by the flow, or have your script return information for later steps in the flow. |
| 40 | +The [Excel Online (Business) connector](/connectors/excelonlinebusiness) gives your flows access to Excel workbooks. There are two actions that call Office Scripts. |
41 | 41 |
|
42 |
| -> [!NOTE] |
43 |
| -> The **Run script** Power Automate action only supports scripts stored in your OneDrive. To run scripts shared in SharePoint libraries, use the **Run script from SharePoint library (Preview)** action. This action is currently in preview and is subject to change based on feedback. If you encounter any issues with this action, please report them through the **Help** > **Give Feedback** option in Power Automate. |
| 42 | +- **Run script**. This is the action to use with scripts stored in the [default location of your OneDrive](../overview/script-storage.md#onedrive). |
| 43 | +- **Run script from SharePoint library**. This is the action to use when scripts are stored in your team's SharePoint site. |
| 44 | + |
| 45 | +# [Run script](#tab/run-script) |
| 46 | + |
| 47 | +For the **Run script** action, the script location is always in your OneDrive. |
| 48 | + |
| 49 | +:::image type="content" source="../images/run-script.png" alt-text="The Run script action with completed fields that show the location is 'OneDrive for Business', the document library is 'OneDrive', the file is 'daily-readings.xlsx', and the script is named 'Format Table'."::: |
| 50 | + |
| 51 | +# [Run script from SharePoint library](#tab/run-script-sp) |
| 52 | + |
| 53 | +For the **Run script from SharePoint library** action, you specify the location of the workbook and script separately. |
| 54 | + |
| 55 | +:::image type="content" source="../images/run-script-from-sp-library.png" alt-text="The Run script from SharePoint library action with completed fields that show the workbook location is 'OneDrive for Business', the workbook library is 'OneDrive', the workbook is 'daily-readings.xlsx', the script location is 'Group - Office Platform', the script library is 'Documents', and the script is named 'Format Table'."::: |
| 56 | + |
| 57 | +--- |
44 | 58 |
|
45 | 59 | ### Data security in Office Scripts with Power Automate
|
46 | 60 |
|
|
0 commit comments