In this article:
Use Case: Gives users the ability to automate the copying of Partner Account Names from Crossbeam overlap records to the Account’s related Opportunities.
Objective: Categorize Partners according to Crossbeam population and store the categorized Partner Names in (4) text fields on the Opportunity: Partners (Customer), Partners (Opportunity), Partners (Prospect) Partners (Catch All).
In order to meet the objective of this documentation, you will be required to create two Record-triggered flows:
1 triggered by an update to the Overlap data fields on Account
and
1 triggered by the creation of an Opportunity
Note to Salesforce Administrator: This documentation assumes that the Overlap Partner Data is already being stored on the Account in Long Text Fields. If field types other than Long Text or Rich Text are being used, then it is not necessary to build automation to copy their values to related opportunities, instead you should create formula fields on the opportunity to reference the fields containing overlap data on the related Account.
Technical Build Instructions
❗️Important
This document assumes you have already completed the prerequisite process found here.
Create the following custom fields on Opportunity Object in Salesforce
Partners (Customer)
Type: Text Area (Long)
Field Label: Partners (Customer)
Field Name: Partners_Customer
(Optional) Length: 1,000 (**limit is only required if referencing this field in a Salesforce Report)
Partners (Opportunity)
Type: Text Area (Long)
Field Label: Partners (Opportunity)
Field Name: Partners_Opportunity
(Optional) Length: 1,000 (**limit is only required if referencing this field in a Salesforce Report)
Partners (Prospect)
Type: Text Area (Long)
Field Label: Partners (Prospect)
Field Name: Partners_Prospect
(Optional) Length: 1,000 (**limit is only required if referencing this field in a Salesforce Report)
Optional Repeat for any additional Account fields that are capturing crossbeam data.
Partners (Catch All)
Type: Text Area (Long)
Field Label: Partners (Catch All)
Field Name: Partners_Catch_All
Helpt Text: This field serves as a catch-all for remaining Partners which do not match criteria for predefined populations listed on the Account page
(Optional) Length: 1,000 (**limit is only required if referencing this field in a Salesforce Report)
Account Record-Triggered Flow
Video Overview:
Navigate to Setup > Process Automation > Flows > “New Flow”
Select “Record-Triggered Flow”, then click “Create”
Configure the Start Element
Object = Account
Trigger the Flow When: A record updated
Condition Requirements: Any Condition Is Met (Or)
Field: Partners_Customer__c
Operator: Is Changed
Value: {!$GlobalConstant.True}
OR
Field: Partners_Opportunity__c
Operator: Is Changed
Value: {!$GlobalConstant.True}
OR
Field: Partners_Prospect__c
Operator: Is Changed
Value: {!$GlobalConstant.True}
ORField: Partners_Catch_All__c
Operator: Is Changed
Value: {!$GlobalConstant.True}
Optimize the Flow for: Actions and Related Records
Add an “Update Records” Element
Label: Update Open Opportunities
API Name: Update_Open_Opportunities
How to Find Records to Update and Set Their Values: Specify conditions to identify records, and set fields individually
Object: Opportunity
Condition Requirements to Update Records: All Conditions Are Met (AND)
Condition 1
Field: AccountId
Operator: Equals
Value: {!$Record.Id}
Condition 1
Field: IsClosed
Operator: Equals
Value: {!$GlobalConstant.False}
Set Field Values for the Opportunity Records
Field 1
Field: Partners_Customer__c
Value: {!$Record.Partners_Customer__c}
Field 2
Field: Partners_Opportunity__c
Value: {!$Record.Partners_Opportunity__c}
Field 3
Field: Partners_Prospect__c
Value: {!$Record.Partners_Prospect__c}
Field 4
Field: Partners_Catch_All__c
Value: {!$Record.Partners_Catch_All__c}
Save and Activate the Flow
Opportunity Record-Triggered Flow
Video Overview:
Navigate to Setup > Process Automation > Flows > “New Flow”
Select “Record-Triggered Flow”, then click “Create”
Configure the Start Element
Object = Opportunity
Trigger the Flow When: A record created
Condition Requirements: None
Optimize the Flow for: Fast Field Updates
Add an Assignment Element to the Path
Label: Assign Xbeam Data
API Name: Assign_Xbeam_Data
Variable 1
Variable: {!$Record.Partners_Customer__c}
Operator: Equals
Value: {!$Record.Account.Partners_Customer__c}
Variable 2
Variable: {!$Record.Partners_Opportunity__c}
Operator: Equals
Value: {!$Record.Account.Partners_Opportunity__c}
Variable 3
Variable: {!$Record.Partners_Prospect__c}
Operator: Equals
Value: {!$Record.Account.Partners_Prospect__c}
Variable 4
Variable: {!$Record.Partners_Prospect__c}
Operator: Equals
Value: {!$Record.Account.Partners_Prospect__c}
Save and Activate the Flow