Skip to content

Commit 9b5746e

Browse files
authored
Merge pull request #676 from OfficeDev/main
[admin] Publish
2 parents 1027687 + 2793234 commit 9b5746e

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

docs/develop/power-automate-integration.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Run Office Scripts with Power Automate
33
description: How to get Office Scripts for Excel working with a Power Automate workflow.
44
ms.topic: integration
5-
ms.date: 09/19/2023
5+
ms.date: 11/10/2023
66
ms.localizationpriority: medium
77
---
88

@@ -35,12 +35,26 @@ This opens a task pane with several options to begin connecting your Office Scri
3535
> [!TIP]
3636
> You can also start making a flow from the **More options (…)** menu on an individual script.
3737
38-
## Excel Online (Business) connector
38+
## Excel connector
3939

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.
4141

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+
---
4458

4559
### Data security in Office Scripts with Power Automate
4660

15.5 KB
Loading

docs/images/run-script.png

9.71 KB
Loading

docs/tutorials/excel-power-automate-manual.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Call scripts from a manual Power Automate flow
33
description: A tutorial about how to use an Office Script in Power Automate through a manual trigger.
4-
ms.date: 10/01/2022
4+
ms.date: 11/10/2023
55
ms.localizationpriority: high
66
---
77

@@ -64,7 +64,7 @@ Power Automate shouldn't use [relative references](../testing/power-automate-tro
6464

6565
:::image type="content" source="../images/power-automate-tutorial-1.png" alt-text="The Power Automate 'Create' button.":::
6666

67-
3. In the **Start from blank** section, select **Instant flow**. This creates a manually activated workflow.
67+
3. In the **Start from blank** section, select **Instant flow**. This creates a manually activated workflow. You can also make scheduled flows and flows that start based on events. These are covered in the next tutorials.
6868

6969
:::image type="content" source="../images/power-automate-tutorial-2.png" alt-text="The Power Automate Instant flow option for creating a new workflow.":::
7070

@@ -80,7 +80,7 @@ Power Automate shouldn't use [relative references](../testing/power-automate-tro
8080

8181
:::image type="content" source="../images/power-automate-tutorial-4.png" alt-text="Excel Online (Business) option in Power Automate.":::
8282

83-
7. Under **Actions**, select **Run script**.
83+
7. Under **Actions**, select **Run script**. This action runs a script from your OneDrive on a workbook. If you want to use a script stored in your team's SharePoint library, you should use the **Run script from a SharePoint library** action.
8484

8585
:::image type="content" source="../images/power-automate-tutorial-5.png" alt-text="Run script action option in Power Automate.":::
8686

0 commit comments

Comments
 (0)