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
Iago SilvaIago Silva 

Contacts To Multiple Accounts Scratch org

Hello everybody

I'm trying to enable "Contacts to Multiple Accounts" in a scratch org but it gives the message: "You can't enable Contacts to Multiple Accounts with the feature in its current state. Contact salesforce.com for help enabling Contacts to Multiple Accounts."

I've tried to create a scratch org with "ContactsToMultipleAccounts" feature in the scratch definition file but when I create the scratch org the feature is disable and when I try to enable it, show the same message.

(I'm using org shape funcionality)

Someone knows what I have to do?
Thaks in advance :)
 
Best Answer chosen by Iago Silva
Iago SilvaIago Silva
Hi, I put the setting: 
 
"accountSettings": {
      "enableRelateContactToMultipleAccounts": true,
      "enableAccountTeams": true
}

in the scracth org definition json file, and now it works !!

Thank you anyway

All Answers

Suraj Tripathi 47Suraj Tripathi 47
Hi,

Please follow the below link:- 
https://help.salesforce.com/articleView?id=sf.shared_contacts_set_up.htm&type=5

Please mark it as Best Answer if it helps you.

Thanks & Regards
Suraj Tripathi
Iago SilvaIago Silva
Hi, I did it but Salesforce gives me the message: "You can't enable Contacts to Multiple Accounts with the feature in its current state. Contact salesforce.com for help enabling Contacts to Multiple Accounts."
Iago SilvaIago Silva
Hi, I put the setting: 
 
"accountSettings": {
      "enableRelateContactToMultipleAccounts": true,
      "enableAccountTeams": true
}

in the scracth org definition json file, and now it works !!

Thank you anyway
This was selected as the best answer