You are here:
Vlocity Graph Component Editor Settings
Settings in the Vlocity Graph Component Editor that you can change are listed here, including the number of nodes and the number of relationship degrees.
By default the Vlocity Graph component uses the Id of the record associated with the page as the root object. For example, if the Vlocity Graph component is part of the Contacts page, the Vlocity Graph component generates a graph based on the current Contact.
To choose a specific record as the root object for the Vlocity Graph component, make sure the Record Id Type is set to Context Aware Record Id, and enter a Record Id. For example, to display a static org chart of a company's top leadership, you can specify the Id of the CEO Contact and then adjust the depth (numberOfDegrees setting) enough to include all high-level executives.
Change the numberOfNodes setting to limit the number of nodes that a Relationship graph can display.
Change the numberOfDegrees setting to specify the depth (number of degrees) of relationships that a Relationship graph can display. This setting doesn't apply to Timeline graphs.
For example, in a graph of Contact nodes, a value of 1 displays only the Contacts having direct relationships to the main Contact. A value of 2 adds the Contacts having relationships to the first-degree Contacts, even if they have no direct relationship to the main Contact.
By default, Timeline graphs show the past to the present from left to right. To reverse the display and show the present on the left, select the Right to left checkbox.
Apex Class that Retrieves a Record Id
By default, the Record Id Type is set to Context Aware Record Id, which specifies that the Vlocity Graph component uses the Id of the record associated with the page as the root object.
You can use an Apex class to provide a record Id:
-
Set the Record Id Type to Custom Record Id.
-
Specify the name of an Apex class in the Custom Record Id Class Name field.
-
Specify the name of a method in the Apex class in the Custom Record Id Method Name field.
The Apex class must implement VlocityOpenInterface2. Its method must return a record Id that is valid for one of the node types in the graph. For an example, see Example Custom Record Id Class.

