You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. The remaining steps are added inside the **Do until** control. Next, call the script to read the data. Add an **Excel Online (Business)** connector with the **Run script** action. Use the following values for the action.
235
+
1. The remaining steps are added inside the **Do until** control. Next, call the script to read the data. Add an **Excel Online (Business)** connector with the **Run script** action. Rename it to **Read data**. Use the following values for the action.
227
236
***Location**: OneDrive for Business
228
237
***Document Library**: OneDrive
229
238
***File**: "SampleData.xlsx" (as selected by the file picker)
:::image type="content" source="../../images/write-large-dataset-4.png" alt-text="The completed 'Run script' action for the script that reads the data.":::
235
-
1. Call the script to write the data. Add a second **Excel Online (Business)** connector with the **Run script** action. Use the following values for the action.
244
+
1. Call the script to write the data. Add a second **Excel Online (Business)** connector with the **Run script** action. Rename it to **Write data**. Use the following values for the action.
236
245
***Location**: OneDrive for Business
237
246
***Document Library**: OneDrive
238
247
***File**: "TargetWorkbook.xlsx" (as selected by the file picker)
239
248
***Script**: Write data at row location
249
+
***data**: *result* (dynamic content from **Read data**)
250
+
* Press **[Switch input to entire array](../../testing/power-automate-troubleshooting.md#pass-entire-arrays-as-script-parameters)** first.
:::image type="content" source="../../images/write-large-dataset-6.png" alt-text="The completed 'Increment variable' step for the 'currentRow'.":::
249
260
1. Add a **Condition** control to check if the scripts have read everything. The "Write data at row location" script returns true when it has written fewer rows than the batch size allows. This means it's at the end of the data set. Create the **Condition** control with the following values.
250
-
***Choose a value**: *result* (dynamic content from **Run script**)
261
+
***Choose a value**: *result* (dynamic content from **Write data**)
0 commit comments