A Salesforce flow is used to call into the holdout policy at the appropriate time based on the criteria specified in the flow.
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 Record-Triggered Flow.
.png)
In the Configure Start window on the right, complete the following fields:
Field
Description
Objects
Select Account.
Configure Trigger
Select A record is updated.
Set Entry Conditions
From the Conditions Requirements dropdown select All Conditions Are Met (AND).
In the Field field, find and select Owner ID.
From the Operator dropdown, select Is Changed.
In the Value field, find and select True.
Tip
To reduce transaction volume, add another condition, account has open opportunities. You will have to configure a custom rollup field in Salesforce for the condition to be available.
When to Run the Flow for Updated Records
Select Every time a record is updated and meets the condition requirements.
Optimize Flow
Select Actions and Related Records.
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.
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.
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.
inputVal1
Toggle on.
Type or paste the tag you added when you created your holdout policy (step 6).
Click outside the field.
inputVal3
Toggle on.
Copy and paste
{!$Record__Prior.Owner.Id}.Click outside the field.
inputVal5
Toggle on.
Type
Trueto retrieve accounts teams—ensure that the Territory Routing Setup is available to avoid errors.Note
If inputVal5 is set to
False, no request is sent to Fullcast, and the execution proceeds without interaction. Additionally, when the holdout policy’s account owner is changed, the system deletes the account team members and executes the holdout policy without fetching the assignments.Click outside the field.
Click Show advanced options.
Select Let the flow decide.
Click Save. The flow should look like the following:
.png)