---
schema_version: "1"
id: 09dee559b41a67118207d3d67c474139dc71c55c13fcfbea29e31ea789befbaa
title: Create a Process to Trigger the Email Opt Out Flow
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/essentials_unsubscribe_process.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.essentials_unsubscribe_process.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: bb384651f4f8c0d9937145a61d4ba09fb2c2c166245b711cb487707fe77dd0d4
description: You created a Flow to check the Email Opt Out box when leads and contacts unsubscribe. Now tell the system to launch that Flow when a new case enters the Unsubscribe Requests queue.
products:
  - Cross Cloud
release: "264"
---
# Create a Process to Trigger the Email Opt Out Flow

You created a Flow to check the Email Opt Out box when leads and contacts unsubscribe. Now tell the system to launch that Flow when a new case enters the Unsubscribe Requests queue.

## Create a New Process

1. Open Setup.
2. Search for Process Builder and open it.
3. Click **New**.
4. Name your Process something like Case.
5. In the A process starts when dropdown menu, select **A record changes**.
6. Save your changes.

## Tell the Process to Run When a Case Is Created

1. Click **Add Object**.
2. Choose **Case** as the Object.
3. Choose the Start the process **only when a record is created**.
4. Save your changes.

## Tell the Process to Run When a New Case Enters the Unsubscribe Requests Queue

1. Click **\+ Add Criteria**.
2. Name your Criteria something like New Unsubscribe Case.
3. Under Criteria for executing actions, select **Conditions are met**.
4. Under Set Conditions, choose **Owner ID (Queue) > Name**.
5. Click **Choose**.
6. Set the Operator as **Equals**.
7. Set the Type as **String**.
8. For Value, enter the name of the Queue. In this case, Unsubscribe Requests.
9. Click **\+ Add Row**.
10. In the fields, enter **Email Address** | **Does not equal** | **Global Constant**.
11. Under Conditions, select **All of the conditions are met (AND)**.
12. Save your changes.

## Run the Flow When the Above Criteria Are Met

1. Under Immediate Actions, click **\+ Add Action**.
2. For Action Type, choose **Flow**.
3. For Action Name, call it something like Launch Flow.
4. Under Flow, Choose the **Unsubscribe Flow** you just created.
5. Click **\+ Add Row**.
6. In the fields, choose **Web Email** | **Field Reference** | **Email Address**.
7. Save your changes.
8. Click **\+ Add Action** again.
9. Under Action Type, choose **Update Records**.
10. Give it an Action Name like Update Case to Status Closed.
11. For Record Type, choose**Select the Case record that started your process**.
12. Under Set new field values for the records you update, enter **Status** | **Picklist** | **Closed**.
13. Save your changes.
14. Click **Activate** | **Confirm**.