Create a schedule-triggered flow in Salesforce to clean up expired holdouts with open opportunities on a scheduled frequency. The schedule-triggered flow transfers open opportunities with an expired holdout to the new account owner.
Before you begin
Create a Salesforce flow
In Salesforce, click App Launcher.
In the search bar, type
flows.Click Flows.
.png)
Above the toolbar, click New.
.png)
In the New Automation window, find and select Schedule-Triggered Flow.
.png)
In the Set a Schedule window on the right, complete the following fields:
Field
Description
Start Date
Select the date you want the scheduled automation to begin.
Start Time
Select the time you want the scheduled automation to run.
Frequency
Select how often you want the scheduled automation to run.
In the Flow Builder, click Choose Object.
.png)
From the Object dropdown, find and select Holdout.
Complete the additional fields:
.png)
Field
Description
Condition Requirements
Select All Conditions Are Met (AND).
Field
Find and select Expired Holdout.
Operator
Select Equals.
Value
Find and select True.
In the Flow Builder, click Add +.
.png)
Find and select Action.
.png)
In the Search Actions field, find and select Policy Handler.
.png)
In the Policy Handler window on the right, complete only the following fields (fields not listed, do not include):
Field
Description
Label
Type a unique name for your flow (such as Clean Up Holdouts).
API Name
Type unique name that is used to call the flow when it triggers.
Note
When you click on the field, it auto-populates a name based on the label, which you can change if needed. The API name cannot include any spaces or special characters.
Description
Optional. Type a brief description of the flow.
policyType
Copy and paste
HoldoutPolicy(no spaces and case sensitive).Click outside the field.
recordId
Toggle on.
Copy and paste
{!$Record.Id}.Click outside the field.
Click Save.
In the Save Flow window, complete the following fields:
Note
You can copy what you typed in step 10 for the same fields.
Field
Description
Label
Type a unique name for your flow.
API Name
Type unique name that is used to call the flow when it triggers.
Note
When you click on the field, it auto-populates a name based on the label, which you can change if needed. The API name cannot include any spaces or special characters.
Description
Optional. Type a brief description of the flow.
Click Activate. The flow should look like the following:
.png)