OwnerChangeOptionInfo

Represents default and optional actions that can be performed when a record’s owner is changed.

Version 

Introduced in API version 35.0.

Supported SOAP API Calls 

describeSObjects(), query()

Supported REST API Methods 

Query

Special Access Rules 

  • OwnerChangeOptionInfo is accessible in Tooling API to user profiles with the View Setup and Configuration permission.

Fields 

DefaultValue 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Description: Default value of the checkbox for this option in the user interface.

  • Default value: false

DurableId 

  • Type: string

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: Unique identifier for the field. Always retrieve this value before using it, as the value isn’t guaranteed to stay the same from one release to the next. To simplify queries, use this field.

EntityDefinitionId 

  • Type: string

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: The ID of the EntityDefinition containing the record.

IsEditable 

  • Type: boolean

  • Required: No

  • Properties: Defaulted on create, Filter, Group, Sort

  • Description: Indicates whether this option is editable by the user when updating the owner using the OwnerChangeOptions SOAP header.

  • Default value: false

Label 

  • Type: string

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: The label that corresponds to the option in the user interface.

Name 

  • Type: string

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: The unique name for the option.

ParentId 

  • Type: string

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Introduced: API version 44.0

  • Description: The durable ID of the parent OwnerChangeOptionInfo record.

Example 

Retrieve all the change options for contacts.

1SELECT Id, Name, Label, IsEditable, DefaultValue, EntityDefinition.QualifiedApiName 
2FROM OwnerChangeOptionInfo 
3WHERE EntityDefinition.QualifiedName='Contact’

Retrieve the change options for opportunities.

1SELECT DurableId,EntityDefinitionId,IsEditable,Label,Name,ParentId
2FROM OwnerChangeOptionInfo 
3WHERE EntityDefinition.DurableId = ‘Opportunity’

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!