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
- Open Setup.
- Search for Process Builder and open it.
- Click New.
- Name your Process something like Case.
- In the A process starts when dropdown menu, select A record changes.
- Save your changes.
Tell the Process to Run When a Case Is Created
- Click Add Object.
- Choose Case as the Object.
- Choose the Start the process only when a record is created.
- Save your changes.
Tell the Process to Run When a New Case Enters the Unsubscribe Requests Queue
- Click + Add Criteria.
- Name your Criteria something like New Unsubscribe Case.
- Under Criteria for executing actions, select Conditions are met.
- Under Set Conditions, choose Owner ID (Queue) > Name.
- Click Choose.
- Set the Operator as Equals.
- Set the Type as String.
- For Value, enter the name of the Queue. In this case, Unsubscribe Requests.
- Click + Add Row.
- In the fields, enter .
- Under Conditions, select All of the conditions are met (AND).
- Save your changes.
Run the Flow When the Above Criteria Are Met
- Under Immediate Actions, click + Add Action.
- For Action Type, choose Flow.
- For Action Name, call it something like Launch Flow.
- Under Flow, Choose the Unsubscribe Flow you just created.
- Click + Add Row.
- In the fields, choose .
- Save your changes.
- Click + Add Action again.
- Under Action Type, choose Update Records.
- Give it an Action Name like Update Case to Status Closed.
- For Record Type, chooseSelect the Case record that started your process.
- Under Set new field values for the records you update, enter .
- Save your changes.
- Click .