Loading

Unable to Choose a Child Object as the Target Object in a Salesforce 'Create a Record' Quick Action When It Has Multiple Relationships

Дата публикации: Oct 12, 2026
Описание

In Salesforce, a child object with multiple parent objects is not available for selection as the Target Object in a 'Create a Record' quick action. This includes situations where standard objects behave like master-detail relationships, such as Account and Opportunity. In these situations, Salesforce does not allow you to create actions for the related child object when the child object has multiple relationships of different types.

Example:

  • Create custom object C, with a Master-Detail relationship to object A and a Master-Detail relationship to object B. The relationships are A-(Master-Detail)-C and B-(Master-Detail)-C.
  • Create a 'Create a Record' quick action on A. The master-detail related object C is visible in the "Target Object" picklist. The same behavior applies to object B.
  • Go back to the field definitions of child object C and change the field type of "A-(Master-Detail)-C" to a lookup, so the relationship becomes "A-(Lookup)-C".
  • Create a quick action on A again. The lookup-related object C no longer appears in the "Target Object" picklist.
Решение

This article answers the question: why can you not choose a child object with multiple relationships as the Target Object in a Salesforce 'Create a Record' quick action, and how do you work around it? This is Working as Designed behavior.

Why This Happens

For Master-Detail relationships, a detail object record requires a master record when a child record is created. In a Lookup relationship, a detail object record can be created with or without a master record.

Workarounds

To create an action with object C as the target object on object B, use one of the following options. Before you change the relationships, review the Considerations for Object Relationships article listed in Additional Resources.

  • Convert the Lookup relationship between object B and C to a Master-Detail relationship. Child object C is then available as the Target Object for both A and B.
  • Convert the relationship between A and C from Master-Detail to Lookup.

The workaround in the article "Cannot choose a specific custom object as the target for 'Create a Record' Global Action" is also applicable, but it is not advisable. It creates the action for the detail object before the master-detail relationship field is established.

Номер статьи базы знаний

001927677

 
Загрузка
Salesforce Help | Article