RelationshipGraphDefinition
Parent Type
File Suffix and Directory Location
RelationshipGraphDefinition components have the suffix .relationshipGraphDefinition and are stored in the relationshipGraphDefinitions folder.
Version
RelationshipGraphDefinition components are available in API version 55.0 and later.
Special Access Rules
The Financial Services Cloud permission set license is required to access this object.
Fields
Field Name | Description |
---|---|
isActive |
|
isTemplate |
|
masterLabel |
|
relationshipGraphDefVersions |
|
RelationshipGraphDefVersion
The list of graph versions associated with the relationship graph definition.
Field Name | Description |
---|---|
graphDefinition |
|
graphType |
|
Declarative Metadata Sample Definition
The following is an example of a RelationshipGraphDefinition component.
<?xml version="1.0" encoding="UTF-8"?>
<RelationshipGraphDefinition xmlns="http://soap.sforce.com/2006/04/metadata">
<isActive>false</isActive>
<isTemplate>true</isTemplate>
<masterLabel>Account Graph</masterLabel>
<relationshipGraphDefVersions>
<graphDefinition>{
"graph" : {
"rootNode" : {
"object" : {
"entity" : "Account"
},
"configurationType" : "Primary",
"sortFields" : [ {
"field" : {
"field" : "LastModifiedDate",
"whichEntity" : "TARGET"
},
"order" : "DESC"
} ],
"nodeUiConfig" : {
"fieldsToDisplay" : [ ],
"showFieldLabels" : true,
"actions" : { }
},
"childRelationships" : [ {
"OneToMany" : {
"targetObjectNode" : {
"object" : {
"entity" : "Contact"
},
"configurationType" :"Custom",
"sortFields" : [ {
"field" : {
"field" : "LastModifiedDate",
"whichEntity" : "TARGET"
},
"order" : "DESC"
} ],
"nodeUiConfig" : {
"fieldsToDisplay" : [ {
"field" : "Name",
"whichEntity" : "TARGET"
}, {
"field" : "Phone",
"whichEntity" :"TARGET"
} ],
"showFieldLabels" : true,
"actions" : {
"containerActions" : [ {
"action" : "New"
} ],
"recordActions" : [ {
"action" : "Edit"
}, {
"action" : "Delete"
} ]
}
},
"childRelationships" : [ ]
},
"relationshipUiConfig" : { },
"filter" : {
"filterCriteria" : [ {
"field" : {
"field" : "Name",
"whichEntity" : "TARGET"
},
"operator" : "eq",
"value" : "Salesforce"
} ],
"booleanFilter" : "1"
},
"targetObjectField" : {
"field" : "AccountId",
"whichEntity" : "TARGET"
}
}
} ]
},
"globalUiConfig" : {
"borderColor" : "Green2",
"borderThickness" : "2px";,
"colorShading" : "Black",
"fieldLayout" : "Vertically Stacked",
"recordContainerExpansion" : true,
"recordExpansion" : true
}
}
}</graphDefinition>
<graphType>HorizontalHierarchy</graphType>
</relationshipGraphDefVersions>
</RelationshipGraphDefinition>
The following is an example package.xml that references the previous definition.
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Package1</fullName>
<types>
<members>*</members>
<name>RelationshipGraphDefinition</name>
</types>
<version>55.0</version>
</Package>
Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.