function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bob_zBob_z 

Creating a Flow to Update Custom Object Using Account Contact Relationship

I have a Service Appointment object with a custom look-up field to the account object Contractor__c

The Contractor Account record uses the Account Contact Relationship to relate contacts.

I need to create a flow that starts with the service appointment object.

Looks at the related contact from the contractor lookup field
Pick a contact with the role "accountholder", and assign that contact to a custom field Contractor_Contact__c on the service appointment. But how would I go about that in a Flow or process builder/flow to find the correct contact? I can build flows and processes but I never used the Account Contact Relationship object before in a flow or process builder workflow?   
PriyaPriya (Salesforce Developers) 

Hi Bob,

To find the correct contact, try to get contacts records associated with account where the contactrole is "accountholder".

Please mark it as best answer if you find the above information helpful.

Regards,
Priya Ranjan