Salesforce Certified Platform Administrator II free question 3 / 10 · Domain 2: Objects and Applications
An org has Contacts to Multiple Accounts turned on, and an admin wants to build a custom action for the Account Contact Relationship object. Which of the following can be created, according to the considerations in Salesforce Help?
- A global action that changes the Roles value of many relationship records at once
- A global action that sends an email to the related contact
- An action created on the relationship object that changes the Roles value of the relationship record
- An action created on the relationship object that sends an email to the related contact
Show the answer and explanation
Answer: C
Why this is correct
The Account Contact Relationship section of "Considerations for Relating a Contact to Multiple Accounts" says custom actions are supported with limitations. They must be specific to the Account Contact Relationship object, and you can create actions that update records or invoke Lightning components or Visualforce pages. An action on the relationship object that edits the Roles value is an update-a-record action, so it is allowed.
Why the other options are wrong
"An action created on the relationship object that sends an email to the related contact" … The same section says you can't create actions that send emails or log calls, because the Account Contact Relationship object can't have activities related to it. Creating the action on the right object does not change that.
"A global action that sends an email to the related contact" … Global actions aren't supported for this object, and an email action is ruled out anyway because the object can't have activities. This option fails on both where the action lives and what it does.
"A global action that changes the Roles value of many relationship records at once" … Custom actions must be specific to the Account Contact Relationship object, and global actions aren't supported. An update action is allowed, but it has to be created on the relationship object rather than as a global action.
Key point
Only custom actions that are created on the Contact object can use the Account Contact Relationship object as a target object. Even on the relationship object, you can't create actions that create records, and you can't override the default actions. When you plan quick actions for contacts shared across accounts, sort each idea by action type and by where it would be created before you build anything.