Create a Flow to Send an Email Alert
After you create an email template and an email alert, you can create a flow to trigger the alert.
-
From Setup, in the Quick Find Box, enter
Process Automation
, and select Flows. -
Click New Flow.
-
Select Start From Scratch and click Next.
-
Select Autolaunched Flow (No Trigger), and click Create.
-
In Flow Builder, click Auto-Layout, and select Free-Form.
-
In the Toolbox, select the Manager tab, and click New Resource.
-
Fill in the New Resource form.
-
Under Resource Type, select Variable.
-
For API Name, enter
CartCheckoutSessionRecord
. -
Under Data Type, select Record.
-
Under Object, select Cart Checkout Session.
-
For Availability Outside the Flow, select Available for input.
-
-
Click Done.
-
In the Toolbox, select the Elements tab, and drag the Action element to the canvas.
-
Fill in the New Action form.
-
For Filter By, select Type.
-
Select Email Alert.
-
Click Search email alerts, and select the alert you created.
-
Label your action
Checkout Stage Email Notification Alert Action
. -
For the API Name, enter
Checkout_Stage_Email_Notification_Alert_Action
. -
Under Record ID, enter
{!CartCheckoutSessionRecord.Id}
.
-
-
Click Done.
-
Link the two flow actions by dragging a connection between them.
-
Save and activate your flow.