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/tutorial-build-schedule-recurring-logic-app-workflow.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ When you finish, your workflow looks like the following high level example:
32
32
>
33
33
> To find Azure Copilot, on the [Azure portal](https://portal.azure.com) toolbar, select **Copilot**.
34
34
35
+
You can create a similar workflow with a Standard logic app resource. However, the user experience and tutorial steps vary slightly from the Consumption version.
36
+
35
37
## Prerequisites
36
38
37
39
* An Azure account and subscription. If you don't have a subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
Copy file name to clipboardExpand all lines: articles/logic-apps/tutorial-process-email-attachments-workflow.md
+25-17Lines changed: 25 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ When you finish, your workflow looks like the following high level example:
34
34
>
35
35
> To find Azure Copilot, on the [Azure portal](https://portal.azure.com) toolbar, select **Copilot**.
36
36
37
+
You can create a similar workflow with a Standard logic app resource where some connector operations, such as Azure Blob Storage, are also available as built-in, service provider-based operations. However, the user experience and tutorial steps vary slightly from the Consumption version.
38
+
37
39
## Prerequisites
38
40
39
41
* An Azure account and subscription. If you don't have a subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
@@ -410,7 +412,7 @@ The following steps add your previously created Azure function to your workflow
410
412
411
413
Next, add an action that creates a blob in your storage container so you can save the email body.
412
414
413
-
## Add an action to create blob for email body
415
+
## Add an action to create a blob for email body
414
416
415
417
The following steps create a blob to store the email body:
416
418
@@ -438,13 +440,13 @@ The following steps create a blob to store the email body:
438
440
|**Storage Account Name Or Blob Endpoint**| Yes |**Use connection settings(<*storage-account-name-or-blob-endpoint*>)**| Select the option that includes your storage account name. <br><br>This example uses **https://attachmentstorageacct.blob.core.windows.net**.|
439
441
|**Folder Path**| Yes | <*path-and-container-name*> | The path and name for the container that you previously created. <br><br>For this example, select the folder icon, and then select the **attachments** container. |
440
442
|**Blob Name**| Yes | <*sender-name*> | For this example, use the sender's name as the blob's name. <br><br>1. Select inside the **Blob Name** box, and then select the dynamic content list option (lightning icon). <br><br>2. From the **When a new email arrives** section, select the **From** field. |
441
-
|**Blob Content**| Yes | <*content-for-blob*> | For this example, use the HTML-free email body as the blob content. <br><br>1. Select inside the **Blob Content** box, and then select the dynamic content list option (lightning icon). <br><br>2. From the **Call RemoveHTMLFunction to clean email body** section, select **Body**. |
443
+
|**Blob Content**| Yes | <*content-for-blob*> | For this example, use the HTML-free email body as the blob content. <br><br>1. Select inside the **Blob Content** box, and then select the dynamic content list option (lightning icon). <br><br>2. From the **Call RemoveHTMLFunction** section, select **Body**. |
442
444
443
-
When you're done, the The following image shows the fields to select for the **Create blob** action:
445
+
When you're done, the The following image shows the fields to select for the **Create blob for email body** action:
444
446
445
447
:::image type="content" source="media/tutorial-process-email-attachments-workflow/create-blob-email-body.png" alt-text="Screenshot shows parameter values and selected outputs for the Create blob action." lightbox="media/tutorial-process-email-attachments-workflow/create-blob-email-body.png":::
446
448
447
-
When you're done, the **Create blob** action looks like the following example:
449
+
When you're done, the **Create blob for email body** action looks like the following example:
@@ -454,15 +456,15 @@ The following steps create a blob to store the email body:
454
456
455
457
1. On the designer toolbar, select **Run** > **Run**.
456
458
457
-
This step manually starts and runs your workflow, but nothing will happen until the test email arrives in your inbox.
459
+
This step manually starts and runs your workflow, but nothing will happen until you send a test email to your inbox.
458
460
459
461
1. Send yourself an email that meets the following criteria:
460
462
461
-
* Your email's subject has the text that you specified in the trigger's **Subject filter**: `Business Analyst 2 #423501`
463
+
* Your email's subject has the text that you specified in the trigger's **Subject filter** parameter: **Business Analyst 2 #423501**
462
464
463
465
* Your email has at least one attachment. For now, just create one empty text file, and attach that file to your email.
464
466
465
-
* Your email has some test content in the body, for example: `Testing my logic app workflow`
467
+
* Your email has some test content in the body, for example: **Testing my logic app workflow**
466
468
467
469
If your workflow didn't trigger or run despite a successful trigger, see [Troubleshoot your logic app workflow](logic-apps-diagnosing-failures.md).
468
470
@@ -474,35 +476,41 @@ The following steps create a blob to store the email body:
474
476
475
477
At this point, only the email appears in the container because the workflow hasn't processed the attachments yet.
476
478
477
-

479
+
:::image type="content" source="media/tutorial-process-email-attachments-workflow/storage-explorer-saved-email.png" alt-text="Screenshot shows Storage Explorer with only the saved email." lightbox="media/tutorial-process-email-attachments-workflow/storage-explorer-saved-email.png":::
478
480
479
481
1. When you're done, delete the email in Storage Explorer.
480
482
481
483
1. Optionally, to test the **False** branch, which does nothing at this time, you can send an email that doesn't meet the criteria.
482
484
483
-
Next, add a **For each** loop to process all the email attachments.
485
+
Next, add a **For each** loop to process each email attachment.
484
486
485
487
## Add a loop to process attachments
486
488
487
489
To process each attachment in the email, add a **For each** loop to your workflow.
488
490
489
-
1. Return to the designer. Under the **Create blob for email body** action, select **Add an action**.
491
+
1. Return to the workflow designer. Under the **Create blob for email body** action, select **Add an action**.
492
+
493
+
1.[Follow these general steps to add the **Control** action named **For each**](create-workflow-with-trigger-or-action.md?tabs=consumption#add-action).
490
494
491
-
1.Under the **Choose an operation** search box, select **Built-in**. In the search box, enter **for each**, and select the action named**For each**.
495
+
1.Rename the **For each**action with**For each email attachment**.
492
496
493
-

497
+
1. Now select the content for the loop to process.
494
498
495
-
1. Rename your loop with the following description: **For each email attachment**
499
+
1. In the **For each email attachment** loop, select inside the **Select An Output From Previous Steps** box, and then select the dynamic content list option (lightning icon).
496
500
497
-
1. Now select the data for the loop to process. In the **For each email attachment** loop, select inside the **Select an output from previous steps** box so that the dynamic content list appears. From the **When a new email arrives** section, select **Attachments**.
501
+
1. From the **When a new email arrives** section, select **Attachments**.
498
502
499
-

503
+
The **Attachments** output includes an array with all the attachments from an email. The **For each** loop repeats actions on each array item.
504
+
505
+
> [!TIP]
506
+
>
507
+
> If you don't see **Attachments**, select **See More**.
500
508
501
-
The **Attachments** field passes in an array that contains all the attachments included with an email. The **For each** loop repeats actions on each item that's passed in with the array.
509
+
:::image type="content" source="media/tutorial-process-email-attachments-workflow/select-attachments.png" alt-text="Screenshot shows dynamic content list with selected output named Attachments." lightbox="media/tutorial-process-email-attachments-workflow/select-attachments.png":::
502
510
503
511
1. Save your workflow.
504
512
505
-
Next, add the action that saves each attachment as a blob in your **attachments** storage container.
513
+
Next, add an action that saves each attachment as a blob in your **attachments** storage container.
0 commit comments