{ "sections": [ "title", "description", "file_information", "directory_location", "fields", "sub_types", "wsdl_segment", "declarative_metadata_sample_definition" ], "title": "RelationshipGraphDefinition - Metadata API", "description": "Represents a definition of a graph that you can configure in your organization to traverse object hierarchies and record details, giving you a glimpse of how your business works.", "file_information": ".relationshipGraphDefinition", "directory_location": "relationshipGraphDefinitions", "fields_columns": [ "type", "required", "description" ], "fields": { "isActive": { "type": "boolean", "required": true, "description": "Indicates whether the relationship graph is available for use (true) or not (false). The default value is true. Note: This field is read-only in API version 55.0." }, "isTemplate": { "type": "boolean", "required": true, "description": "Indicates whether you can configure this relationship graph as a template (true or not false). The default value is false. In the UI, this field is Set as Template." }, "masterLabel": { "type": "string", "required": true, "description": "A user-friendly name for RelationshipGraphDefinition, which is defined when the RelationshipGraphDefinition is created. In the UI, this field is Label." }, "relationshipGraphDefVersions": { "type": "RelationshipGraphDefVersion[]", "description": "Represents a list of graph versions associated with the relationship graph definition." } }, "sub_types": { "RelationshipGraphDefVersion": { "graphDefinition": { "type": "string", "required": true, "description": "Specifies a set of properties required to create a relationship graph, such as parent node, child relationships, filter and sort fields, and graph UI elements." }, "graphType": { "type": "string", "required": true, "description": "Specifies the type of graph. In API version 55.0, only HorizontalHierarchy graph type is supported." } } }, "wsdl_segment": "```xml\n\n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n\n```", "declarative_metadata_sample_definition": [ { "description": "The following is an example of a RelationshipGraphDefinition component.", "code": "\n\n false\n true\n Account Graph\n \n {\n \"graph\" : {\n \"rootNode\" : {\n \"object\" : {\n \"entity\" : \"Account\"\n },\n \"configurationType\" : \"Primary\",\n \"sortFields\" : [ {\n \"field\" : {\n \"field\" : \"LastModifiedDate\",\n \"whichEntity\" : \"TARGET\"\n },\n \"order\" : \"DESC\"\n } ],\n \"nodeUiConfig\" : {\n \"fieldsToDisplay\" : [ ],\n \"showFieldLabels\" : true,\n \"actions\" : { }\n },\n \"childRelationships\" : [ {\n \"OneToMany\" : {\n \"targetObjectNode\" : {\n \"object\" : {\n \"entity\" : \"Contact\"\n },\n \"configurationType\" :\"Custom\",\n \"sortFields\" : [ {\n \"field\" : {\n \"field\" : \"LastModifiedDate\",\n \"whichEntity\" : \"TARGET\"\n },\n \"order\" : \"DESC\"\n } ],\n \"nodeUiConfig\" : {\n \"fieldsToDisplay\" : [ {\n \"field\" : \"Name\",\n \"whichEntity\" : \"TARGET\"\n }, {\n \"field\" : \"Phone\",\n \"whichEntity\" :\"TARGET\"\n } ],\n \"showFieldLabels\" : true,\n \"actions\" : {\n \"containerActions\" : [ {\n \"action\" : \"New\"\n } ],\n \"recordActions\" : [ {\n \"action\" : \"Edit\"\n }, {\n \"action\" : \"Delete\"\n } ]\n }\n },\n \"childRelationships\" : [ ]\n },\n \"relationshipUiConfig\" : { },\n \"filter\" : {\n \"filterCriteria\" : [ {\n \"field\" : {\n \"field\" : \"Name\",\n \"whichEntity\" : \"TARGET\"\n },\n \"operator\" : \"eq\",\n \"value\" : \"Salesforce\"\n } ],\n \"booleanFilter\" : \"1\"\n },\n \"targetObjectField\" : {\n \"field\" : \"AccountId\",\n \"whichEntity\" : \"TARGET\"\n }\n }\n } ]\n },\n \"globalUiConfig\" : {\n \"borderColor\" : \"Green2\",\n \"borderThickness\" : \"2px\";,\n \"colorShading\" : \"Black\",\n \"fieldLayout\" : \"Vertically Stacked\",\n \"recordContainerExpansion\" : true,\n \"recordExpansion\" : true\n }\n }\n }\n HorizontalHierarchy\n \n" } ] }