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

AccountContactRole question

Hello All,


  A very simple question: How are the AccountContactRole records inserted? I mean right now in our system I see that there accounts and contacts, but no AccountContactRole records generated. Creating a new AccountContactRole through the related list on Account, is that the only way?


Greatly appreciate your inputs on this issue.




Best Answer chosen by Admin (Salesforce Developers) 
Mitesh SuraMitesh Sura

Below query will give you an idea how Account and Contact are related

SELECT id, AccountId, ContactId, Role FROM AccountContactRole

 AccountContactRole is a joining object between those 2 accounts. You can use DataLoader to insert AccountContactRoles. 

Just have right Account Id, Contact Id, and Role Name, and insert it. 


SF Partner