|
1 |
| -1. Select **+** to add the **Condition** action. |
2 |
| -1. Select the **Responses Approval response** token from the **Approvals - Start and wait for an approval** action and set it equal to **Approve** in the Parameters tab of the **Condition** action. |
| 1 | +1. To add the **Condition** action, select the plus sign. |
| 2 | +1. In the **Add an action** search field, type **condition**. |
| 3 | +1. In the list below the search field, select the **Condition** action. |
| 4 | +1. In the **Parameters** tab, select the first **Chose a value** field, and then select the lightning bolt icon. |
| 5 | +1. Select the **Responses Approval response** token. |
| 6 | +1. In the next field, select **is equal to** from the dropdown menu. |
| 7 | +1. In the other **choose a value** field, select the lightning bolt icon, and select **Approve**. |
3 | 8 |
|
4 |
| -1. Select **+** on the **True** branch of the **Condition** action. |
| 9 | + :::image type="content" source="../articles/media/modern-approvals/add-condition.png" alt-text="Screenshot showing how to add a new action after the condition in classic designer."::: |
5 | 10 |
|
6 |
| - :::image type="content" source="media/modern-approvals/add-action-after-condition-new-designer.png" alt-text="Screenshot showing how to add a new action after the condition in the new designer."::: |
7 |
| -1. Enter **send email** into the search box on the **Add an action** card. |
8 |
| -1. Select the **Send an email (V2)** action. |
| 11 | +1. Close the configuration pane. |
| 12 | +1. In the designer, select the plus sign under **True**. |
| 13 | +1. In the **Add an action** search field, type **send email**. |
| 14 | +1. In the list below the search field, select the **Send an email (V2)** action. |
| 15 | + |
| 16 | + The **Parameters** tab displays. This is the template for the email that is sent when the status of the vacation request changes. |
| 17 | + |
| 18 | +1. Select the **To** field and then select the lightning rod icon. |
| 19 | +1. Select the **Created By Email** token from the **Approvals - Start and wait for an approval** action you created in [Add an approval action](../modern-approvals.md#add-an-approval-action). |
| 20 | +1. In the **Subject** field, type a subject for the email. This example uses *Vacation request approved* as the subject. |
| 21 | +1. In the **Body** box, type a message for the email: |
| 22 | + 1. Type the standard text you want to appear in the email, such as *Your vacation request has been approved by*. |
| 23 | + 1. To insert the name of the person who approved the vacation request, place your cursor in the **Body** box at the location where you want the name to appear, and then select the lightning bolt icon. |
| 24 | + 1. Select a token from the dropdown menu. The following example uses the **Responses Approver name** token. |
| 25 | + 1. To insert the comments from the approver, type *Approver's comments*. |
| 26 | + 1. To insert the comments from the approver, place your cursor in the **Body** box at the location where you want the comments to appear, and then select the lightning bolt icon. |
| 27 | + 1. Select a token from the dropdown menu. The following example uses the **Responses comments** token. |
| 28 | + |
| 29 | + :::image type="content" source="../articles/media/modern-approvals/yes-email-config-new-designer.png" alt-text="Screenshot showing how to add a new action after the condition in classic designer."::: |
9 | 30 |
|
10 |
| - :::image type="content" source="media/modern-approvals/select-send-email-yes-new-designer.png" alt-text="Screenshot showing how to select the send email action in the new designer."::: |
11 |
| -1. Configure the email card to suit your needs. |
12 | 31 |
|
13 |
| - >[!NOTE] |
14 |
| - > **To**, **Subject**, and **Body** are required. |
15 | 32 |
|
16 |
| - This card is a template for the email that is sent when the status of the vacation request changes. |
17 | 33 |
|
18 |
| - In the **Body** box on the **Send an email (V2)** card, use the **Comments** token from the **Approvals - Start and wait for an approval** action created in [Add an approval action](../modern-approvals.md#add-an-approval-action). |
|
0 commit comments