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-process-email-attachments-workflow.md
+31-31Lines changed: 31 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -306,7 +306,7 @@ Now add a condition that selects only emails that have attachments.
306
306
307
307
1. On the workflow designer, [follow these general steps to add the **Control** action named **Condition**](create-workflow-with-trigger-or-action.md?tabs=consumption#add-action).
308
308
309
-
1.Open the **Condition** action's information pane, and replace the default name with the following version: **If email has attachments and key subject phrase**
309
+
1.In the **Condition** action information pane, rename the action with **If email has attachments and key subject phrase**.
310
310
311
311
1. Build the condition that checks for emails that have attachments.
312
312
@@ -386,7 +386,7 @@ The following steps add your previously created Azure function to your workflow
386
386
387
387
1. Select your function, which is named **RemoveHTMLFunction** in this example, and then select **Add Action**.
388
388
389
-
1.On the action information pane, replace the name for your Azure Functions action with the following version: **Call RemoveHTMLFunction**
389
+
1.In the **Azure Functions**action information pane, rename the action with **Call RemoveHTMLFunction**.
390
390
391
391
1. Now specify the input for your function to process.
392
392
@@ -404,55 +404,55 @@ The following steps add your previously created Azure function to your workflow
404
404
405
405
When you're done, the Azure function looks like the following example:
406
406
407
-
:::image type="content" source="media/tutorial-process-email-attachments-workflow/add-email-body-finished.png" alt-text="Screenshot shows finished Azure function with request body content to pass to your function." lightbox="media/tutorial-process-email-attachments-workflow/add-email-body-finished.png":::
407
+
:::image type="content" source="media/tutorial-process-email-attachments-workflow/add-email-body-done.png" alt-text="Screenshot shows finished Azure function with request body content to pass to your function." lightbox="media/tutorial-process-email-attachments-workflow/add-email-body-done.png":::
408
408
409
409
1. Save your workflow.
410
410
411
411
Next, add an action that creates a blob in your storage container so you can save the email body.
412
412
413
-
## Add an action to create a blob
413
+
## Add an action to create blob for email body
414
414
415
415
The following steps create a blob to store the email body:
416
416
417
-
1. On the designer, in the **True** block, under your Azure function, select **Add an action**.
417
+
1. On the designer, in the condition's **True** block, under your Azure function, select **Add an action**.
418
418
419
-
1.Under the **Choose an operation** search box, select **All**. In the search box, enter **create blob**, and select the action named **Create blob**.
419
+
1.[Follow these general steps to add the **Azure Blob Storage**action named **Create blob**](create-workflow-with-trigger-or-action.md?tabs=consumption#add-action).
420
420
421
-

421
+
1. Provide the connection information for your storage account, for example:
422
422
423
-
1. Provide the connection information for your storage account, and select **Create**, for example:
423
+
| Parameter | Required | Value | Description |
424
+
|-----------|----------|-------|-------------|
425
+
|**Connection Name**| Yes | <*connection-name*> | A descriptive name for the connection. <br><br>This example uses **AttachmentStorageConnection**. |
426
+
|**Authentication Type**| Yes | <*authentication-type*> | The authentication type to use for the connection. <br><br>This example uses **Access Key**. |
427
+
|**Azure Storage Account Name Or Blob Endpoint**| Yes | <*storage-account-name*> | The name for your previously created storage account. <br><br>This example uses **attachmentstorageacct**. |
428
+
|**Azure Storage Account Access Key**| Yes | <*storage-account-access-key*> | The access key for your previously created storage account. |
424
429
425
-
| Property | Value | Description |
426
-
|----------|-------|-------------|
427
-
|**Connection name**|**AttachmentStorageConnection**| A descriptive name for the connection |
428
-
|**Authentication type**|**Access Key**| The authentication type to use for the connection |
429
-
|**Azure Storage account name or endpoint**| <*storage-account-name*> | The name for your previously created storage account, which is **attachmentstorageacct** for this example |
430
-
|**Azure Storage Account Access Key**| <*storage-account-access-key*> | The access key for your previously created storage account |
430
+
1. When you're done, select **Create New**.
431
431
432
-
1.Rename the **Create blob** action with the following description:**Create blob for email body**
432
+
1.In the **Create blob** action information pane, rename the action with**Create blob for email body**.
433
433
434
-
1.In the **Create blob**action, provide the following information:
434
+
1.Provide the following action information:
435
435
436
-
|Property| Value | Description |
437
-
|----------|-------|-------------|
438
-
|**Storage account name or blob endpoint**|**Use connection settings(<*storage-account-name*>)**| Select your storage account, which is **attachmentstorageacct** for this example. |
439
-
|**Folder path**| <*path-and-container-name*> | The path and name for the container that you previously created. For this example, select the folder icon, and then select the **attachments** container. |
440
-
|**Blob name**| <*sender-name*> | For this example, use the sender's name as the blob's name. Select inside this box so that the dynamic content list appears. From the **When a new email arrives** section, select the **From** field. |
441
-
|**Blob content**| <*content-for-blob*> | For this example, use the HTML-free email body as the blob content. Select inside this box so that the dynamic content list appears. From the **Call RemoveHTMLFunction to clean email body** section, select **Body**. |
436
+
|Parameter | Required| Value | Description |
437
+
|-----------|----------|-------|-------------|
438
+
|**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
+
|**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
+
|**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**. |
442
442
443
-
The following image shows the fields to select for the **Create blob** action:
443
+
When you're done, the The following image shows the fields to select for the **Create blob** action:
444
444
445
-

445
+
:::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
446
447
-
When you're done, the action looks like the following example:
447
+
When you're done, the **Create blob**action looks like the following example:
448
448
449
-

1. On the designer toolbar, select **Run Trigger** > **Run**.
455
+
1. On the designer toolbar, select **Run** > **Run**.
456
456
457
457
This step manually starts and runs your workflow, but nothing will happen until the test email arrives in your inbox.
458
458
@@ -516,12 +516,12 @@ The following steps add an action to create a blog for each attachment:
516
516
517
517

518
518
519
-
1.Rename the **Create blob 2** action with the following description:**Create blob for each email attachment**
519
+
1.In the **Create blob 2** action information pane, rename the action with**Create blob for each email attachment**.
520
520
521
-
1.In the **Create blob for each email attachment** action, provide the following information:
521
+
1.Provide the following information for the action:
522
522
523
-
|Property| Value | Description |
524
-
|----------|-------|-------------|
523
+
|Parameter| Value | Description |
524
+
|-----------|-------|-------------|
525
525
|**Storage account name or blob endpoint**|**Use connection settings(<*storage-account-name*>)**| Select your storage account, which is **attachmentstorageacct** for this example. |
526
526
|**Folder path**| <*path-and-container-name*> | The path and name for the container that you previously created. For this example, select the folder icon, and then select the **attachments** container. |
527
527
|**Blob name**| <*attachment-name*> | For this example, use the attachment's name as the blob's name. Select inside this box so that the dynamic content list appears. From the **When a new email arrives** section, select the **Name** field. |
0 commit comments