You are here:
Create an Email Opt Out Flow
Create a Flow that lets leads and contacts unsubscribe from your email campaigns.
Create a New Flow
- Open Setup.
- In the Quick Find box, search for Flows and open it.
- Click .
Check the Email Opt Out Box When a Lead Unsubscribes via Email-to-Case
- Click and drag Update Records on the canvas.
- Provide a label like Update Lead.
- Click Specify conditions to identify records, and set fields individually.
- Select Lead as the object.
- Select Conditions are Met as the Condition Requirements.
- Select .
- Select Variable as Resource Type.
- Provide an API Name like WebEmail.
- Select Text as Data Type.
- Check both Available for input and Available for output check boxes.
- Click Done.
- Confirm {!WebEmail} is listed in the Value field.
- Under Set Field Values for the Lead Records, select HasOptedOutOfEmail for the Field.
- Select $GlobalContstant.True as the Value.
- Click Done.
Check the Email Opt Out Box When a Contact Unsubscribes via Email-to-Case
- Click and drag Update Records on the canvas.
- Provide a label like Update Contact.
- Specify conditions to identify records, and set fields individually.
- Select Contact as the object.
- Select Conditions are Met as the Condition Requirements.
- Select .
- Under Set Field Values for the Lead Records, select HasOptedOutOfEmail for the Field.
- Select $GlobalContstant.True as the Value.
- Click Done.
Activate the Flow
- Drag the small circle from Start to Update Records: Update Lead.
- Drag the small circle from Update Records: Update Lead to Update Records: Update Contact.
- Save your changes.
- Name your Flow something like Unsubscribe Flow, and save your changes.
- Click Activate.
- Click the ← Back button.

