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
Copy file name to clipboardExpand all lines: articles/logic-apps/test-logic-apps-mock-data-static-results.md
+2-66Lines changed: 2 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: logic-apps
5
5
ms.suite: integration
6
6
ms.reviewer: estfan, azla
7
7
ms.topic: how-to
8
-
ms.date: 07/10/2024
8
+
ms.date: 07/24/2024
9
9
---
10
10
11
11
# Test workflows with mock outputs in Azure Logic Apps
@@ -16,7 +16,7 @@ To test your workflow without affecting your production environments, you can se
16
16
17
17
For example, if you set up mock outputs for the Outlook 365 send mail action, Azure Logic Apps just returns the mock outputs that you provided, rather than call Outlook and send an email.
18
18
19
-
This guide shows how to set up mock outputs for an action in a Consumption or Standard logic app workflow. You can find workflows that ran with these mock outputs and reuse existing action outputs as mock outputs.
19
+
This guide shows how to set up mock outputs for an action in a Consumption or Standard logic app workflow.
20
20
21
21
## Prerequisites
22
22
@@ -181,70 +181,6 @@ To find earlier or other workflow runs where the actions use mock outputs, revie
181
181
182
182
---
183
183
184
-
<a name="reuse-sample-outputs"></a>
185
-
186
-
## Reuse previous outputs as mock outputs
187
-
188
-
If you have a previous workflow run with outputs, you can reuse these outputs as mock outputs by copying and pasting the outputs from that run.
189
-
190
-
### [Consumption](#tab/consumption)
191
-
192
-
1. In the [Azure portal](https://portal.azure.com), open your Consumption logic app workflow in the designer.
193
-
194
-
1. On your logic app resource menu, select **Overview**.
195
-
196
-
1. Under the **Essentials** section, select **Runs history**, if not selected.
197
-
198
-
1. From the **Runs history** list, select the run that has the outputs that you want to reuse.
199
-
200
-
:::image type="content" source="media/test-logic-apps-mock-data-static-results/select-run.png" alt-text="Screenshot shows Consumption workflow run history." lightbox="media/test-logic-apps-mock-data-static-results/select-run.png":::
201
-
202
-
1. After the run details pane opens, select the action with the outputs that you want.
203
-
204
-
1. In the **Outputs** section, select **Show raw outputs**.
205
-
206
-
1. On the **Outputs** pane, copy either the complete JavaScript Object Notation (JSON) object or the specific subsection that you want to use, for example, the entire outputs section, or just the headers section.
207
-
208
-
1. Review the earlier section about how to [set up mock outputs for an action](#set-up-mock-outputs), and follow the steps to open the action's **Testing** tab.
209
-
210
-
1. After the **Testing** tab opens, under **Testing**, open the **Select Fields** list, and select **Code**:
211
-
212
-
1. In the **Code** box that appears, paste your previously copied JSON, for example:
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app workflow in the designer.
221
-
222
-
1. On the workflow menu, select **Overview**.
223
-
224
-
1. Under the **Essentials** section, select **Run History**, if not selected.
225
-
226
-
1. In the **Run History** table, select the run that has the outputs that you want to reuse.
227
-
228
-
:::image type="content" source="media/test-logic-apps-mock-data-static-results/select-run-standard.png" alt-text="Screenshot shows Standard workflow run history." lightbox="media/test-logic-apps-mock-data-static-results/select-run-standard.png":::
229
-
230
-
1. After the run details pane opens, select the action with the outputs that you want.
231
-
232
-
1. In the **Outputs** section, select **Show raw outputs**.
233
-
234
-
1. On the **Outputs** pane, copy either the complete JavaScript Object Notation (JSON) object or the specific subsection that you want to use, for example, the entire outputs section, or just the headers section.
235
-
236
-
1. Review the earlier section about how to [set up mock outputs](#set-up-mock-outputs) for an action, and follow the steps to open the action's **Testing** tab.
237
-
238
-
1. After the **Testing** tab opens, under **Testing**, open the **Select Fields** list, and select **Code**:
239
-
240
-
1. In the **Code** box that appears, paste your previously copied JSON, for example:
Turning off static results on an action doesn't remove the values from your last setup. So, if you turn on static results again on the same action, you can continue using your previous values.
0 commit comments