Example Cross-Object Field References in Flows
- Use a Fast Lookup element to store the contract’s fields, including AccountId, in an sObject variable called varContract.
- Use a Decision element to verify that the value of AccountId wasset in varContract.
- Use a Fast Lookup to store the fields for the contract’s account, including OwnerId, in another sObject variable called varAccount.
- Use a Decision element to confirm that the value of OwnerId wasset in varAccount.
- Use an Assignment element to specify {!varContract.Account.OwnerId} as the value for {!varContract.OwnerId}.
- Use a Fast Update element to write the values in varContract, including the updated OwnerId value, tothe contract in Salesforce.