Skip to content

Commit c9d64c9

Browse files
committed
Art and content updates
1 parent 4a21127 commit c9d64c9

File tree

7 files changed

+32
-23
lines changed

7 files changed

+32
-23
lines changed
-11.2 KB
Loading
14.6 KB
Loading
-725 Bytes
Loading
-499 Bytes
Loading
-2.17 KB
Loading
8.13 KB
Loading

articles/logic-apps/tutorial-process-email-attachments-workflow.md

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ to your logic app and passes the email body content
469469
from email trigger to your function.
470470

471471
1. On the logic app menu, select **Logic App Designer**.
472-
In the **If true** branch, select **Add an action**.
472+
In the **If true** branch, choose **Add an action**.
473473

474474
![Inside "If true", add action](./media/tutorial-process-email-attachments-workflow/if-true-add-action.png)
475475

@@ -555,10 +555,14 @@ the blob as shown and described:
555555
| Setting | Value | Description |
556556
| ------- | ----- | ----------- |
557557
| **Folder path** | /attachments | The path and name for the container that you previously created. For this example, click the folder icon, and then select the "/attachments" container. |
558-
| **Blob name** | **From** field | For this example, use the sender's name as the blob's name. Click inside this box so that the dynamic content list appears, and then select the **From** fild under the **When a new email arrives** action. |
559-
| **Blob content** | **Content** field | For this example, use the HTML-free email body as the blob content. Click inside this box so that the dynamic content list appears, then select **Body** under the **Call RemoveHTMLFunction to clean email body** action. |
558+
| **Blob name** | **From** field | For this example, use the sender's name as the blob's name. Click inside this box so that the dynamic content list appears, and then select the **From** field under the **When a new email arrives** action. |
559+
| **Blob content** | **Content** field | For this example, use the HTML-free email body as the blob content. Click inside this box so that the dynamic content list appears, and then select **Body** under the **Call RemoveHTMLFunction to clean email body** action. |
560560
||||
561561

562+
When you're done, the action looks like this example:
563+
564+
![Finished "Create blob" action](./media/tutorial-process-email-attachments-workflow/create-blob-for-email-body-done.png)
565+
562566
6. Save your logic app.
563567

564568
### Check attachment handling
@@ -615,21 +619,20 @@ To process each attachment in the email,
615619
add a **For each** loop to your logic app's workflow.
616620
617621
1. Under the **Create blob for email body** shape,
618-
choose **More**, and select this command: **Add a for each**
622+
select **More** > **Add a for each**.
619623
620624
![Add "for each" loop](./media/tutorial-process-email-attachments-workflow/add-for-each-loop.png)
621625
622626
2. Rename your loop with this description:
623627
```For each email attachment```
624628
625629
3. Now specify the data for the loop to process.
626-
Click inside the **Select an output from previous steps** box.
627-
From either the parameter list or the dynamic content list,
628-
select **Attachments**.
630+
Click inside the **Select an output from previous steps** box
631+
so that the dynamic content list opens, and then select **Attachments**.
629632
630633
![Select "Attachments"](./media/tutorial-process-email-attachments-workflow/select-attachments.png)
631634
632-
The **Attachments** field passes an array that
635+
The **Attachments** field passes in an array that
633636
contains all the attachments included with an email.
634637
The **For each** loop repeats actions on each item
635638
that's passed in with the array.
@@ -639,15 +642,16 @@ select **Attachments**.
639642
Next, add the action that saves each attachment
640643
as a blob in your **attachments** storage container.
641644
642-
## Create blobs for attachments
645+
## Create blob for each attachment
643646
644-
1. In the **For each** loop,
647+
1. In the **For each email attachment** loop,
645648
choose **Add an action** so you can specify
646649
the task to perform on each found attachment.
647650
648651
![Add action to loop](./media/tutorial-process-email-attachments-workflow/for-each-add-action.png)
649652
650-
2. Under **Choose an action**, search for "blob", then select this action:
653+
2. In the search box, enter "create blob" as your filter,
654+
and then select this action:
651655
**Create blob - Azure Blob Storage**
652656
653657
![Add action to create blob](./media/tutorial-process-email-attachments-workflow/create-blob-action-for-attachments.png)
@@ -663,11 +667,15 @@ create each blob as shown and described:
663667
664668
| Setting | Value | Description |
665669
| ------- | ----- | ----------- |
666-
| **Folder path** | /attachments | The path and name for the container you previously created. You can also browse to and select a container. |
667-
| **Blob name** | **Name** field | From either the parameter list or dynamic content list, select **Name** to pass in the attachment name for the blob name. |
668-
| **Blob content** | **Content** field | From either the parameter list or dynamic content list, select **Content** to pass in the attachment content for the blob content. |
670+
| **Folder path** | /attachments | The path and name for the container that you previously created. For this example, click the folder icon, and then select the "/attachments" container. |
671+
| **Blob name** | **Name** field | For this example, use the attachment's name as the blob's name. Click inside this box so that the dynamic content list appears, and then select the **Name** field under the **When a new email arrives** action. |
672+
| **Blob content** | **Content** field | For this example, use the **Content** field as the blob content. Click inside this box so that the dynamic content list appears, and then select **Content** under the **When a new email arrives** action. |
669673
||||
670674
675+
When you're done, the action looks like this example:
676+
677+
![Finished "Create blob" action](./media/tutorial-process-email-attachments-workflow/create-blob-per-attachment-done.png)
678+
671679
5. Save your logic app.
672680
673681
### Check attachment handling
@@ -741,7 +749,7 @@ To add blank lines in an edit box, press Shift + Enter.
741749
![Send email notification](./media/tutorial-process-email-attachments-workflow/send-email-notification.png)
742750
743751
If you can't find an expected field in the list,
744-
select **See more** next to **When a new email arrives**
752+
choose **See more** next to **When a new email arrives**
745753
in the dynamic content list or at the end of the parameters list.
746754
747755
| Setting | Value | Notes |
@@ -751,14 +759,15 @@ To add blank lines in an edit box, press Shift + Enter.
751759
| **Body** | ```Please review new applicant:``` <p>```Applicant name: ``` **From** <p>```Application file location: ``` **Path** <p>```Application email content: ``` **Body** | The content for the email body. From either the parameter list or dynamic content list, select these fields: <p>- The **From** field under **When a new email arrives** </br>- The **Path** field under **Create blob for email body** </br>- The **Body** field under **Call RemoveHTMLFunction to clean email body** |
752760
||||
753761
754-
If you happen to select a field that contains an array,
755-
such as **Content**, which is an array that contains attachments,
756-
the designer automatically adds a "For each" loop
757-
around the action that references that field.
758-
That way, your logic app can perform that action on each array item.
759-
To remove the loop, remove the field for the array,
760-
move the referencing action to outside the loop,
761-
choose the ellipses (**...**) on the loop's title bar, and choose **Delete**.
762+
> [!NOTE]
763+
> When you select a field that contains an array,
764+
> such as the **Content** field, which is an array that contains attachments,
765+
> the designer automatically adds a "For each" loop
766+
> around the action that references that field.
767+
> That way, your logic app can perform that action on each array item.
768+
> To remove the loop, remove the field for the array,
769+
> move the referencing action to outside the loop,
770+
> choose the ellipses (**...**) on the loop's title bar, and choose **Delete**.
762771
763772
6. Save your logic app.
764773

0 commit comments

Comments
 (0)