Skip to content

Commit 38607e7

Browse files
author
ecfan
committed
Remove reusing outputs
1 parent bfe6b85 commit 38607e7

File tree

2 files changed

+2
-66
lines changed

2 files changed

+2
-66
lines changed
Binary file not shown.

articles/logic-apps/test-logic-apps-mock-data-static-results.md

Lines changed: 2 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: logic-apps
55
ms.suite: integration
66
ms.reviewer: estfan, azla
77
ms.topic: how-to
8-
ms.date: 07/10/2024
8+
ms.date: 07/24/2024
99
---
1010

1111
# 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
1616

1717
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.
1818

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

2121
## Prerequisites
2222

@@ -181,70 +181,6 @@ To find earlier or other workflow runs where the actions use mock outputs, revie
181181

182182
---
183183

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:
213-
214-
:::image type="content" source="media/test-logic-apps-mock-data-static-results/code-box.png" alt-text="Screenshot shows Code box with pasted JSON." lightbox="media/test-logic-apps-mock-data-static-results/code-box.png":::
215-
216-
1. When you're finished, select **Save**.
217-
218-
### [Standard](#tab/standard)
219-
220-
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:
241-
242-
:::image type="content" source="media/test-logic-apps-mock-data-static-results/code-box.png" alt-text="Screenshot shows Code box with pasted JSON." lightbox="media/test-logic-apps-mock-data-static-results/code-box.png":::
243-
244-
1. When you're finished, select **Save**.
245-
246-
---
247-
248184
## Disable mock outputs
249185

250186
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

Comments
 (0)