You are here:
Relationship Graph Traversal Object Fields and Mappings
When you create a Relationship Graph traversal, you must map a few required traversal fields to relationship fields. For Party Relationship and Custom Junction objects, many more traversal field mappings are optional.
In these tables, a relationship object is either a Party Relationship object or a Custom Junction object. The first table lists traversal fields. The second table lists options for referencing relationship object label fields. The third table shows examples of traversal-to-relationship field mappings.
The following table shows options for referencing Party Relationship Type and
Party Relationship fields in the Source Label Field and Target Label Field. The
namespace is assumed to be vlocity_ins.
Referenced Field |
Source Label Field or Target Label Field Value |
|---|---|
Party Relationship Type, Source Role |
vlocity_ins__RelationshipTypeId__r.Name |
Party Relationship Type, Target Role |
vlocity_ins__RelationshipTypeId__r.vlocity_ins__TargetRole__c |
Party Relationship Type, Label String |
vlocity_ins__RelationshipTypeId__r.vlocity_ins__SourceString__c |
Party Relationship, Primary Role |
vlocity_ins__PrimaryRole__c |
Party Relationship, Target Role |
vlocity_ins__TargetRole__c |
In the table below, for all custom objects and fields that have a namespace,
you must include the namespace followed by two underscores as a prefix. For
example, if the namespace is vlocity_ins and the object type is
PartyRelationship__c, the fully qualified name is
vlocity_ins__PartyRelationship__c. If the namespace is
acme and the field name is GroupId__c, the fully
qualified name is acme__GroupId__c.
Setting |
One-to-Many Example |
Party Model Example |
Custom Junction Example |
|---|---|---|---|
Relationship Graph Traversal Name |
Account and Contact Traversal |
Teacher Student Traversal |
Interest Groups Traversal |
Source Object API Name |
Account |
Contact |
acme__Group__c |
Target Object API Name |
Contact |
Contact |
Contact |
Source Object Field |
— |
SourcePartyId__r.vlocity_ins__PartyEntityId__c |
acme__GroupId__c |
Target Object Field |
AccountId |
TargetPartyId__r.vlocity_ins__PartyEntityId__c |
acme__MemberId__c |
Relationship Object |
— |
vlocity_ins__PartyRelationship__c |
acme__GroupsAndMembers__c |
Relationship Type Field |
— |
vlocity_ins__RelationshipTypeId__c |
— |
Relationship Type Value |
— |
a0v1U000000mtlZQAQ |
— |
Source Label |
Account |
(Source Label Field used instead) |
(Source Label Field used instead) |
Target Label |
Contact |
(Target Label Field used instead) |
(Target Label Field used instead) |
Source Label Field |
— |
vlocity_ins__PrimaryRole__c |
acme__GroupLabel__c |
Target Label Field |
— |
vlocity_ins__TargetRole__c |
acme__MemberLabel__c |
Role Field |
— |
(not used) |
acme__MemberRole__c |
Default Strength Value |
1 |
3 |
2 |
Strength Field |
— |
vlocity_ins__Strength__c |
acme__DedicationLevel__c |
Influence Score Field |
— |
vlocity_ins__InfluenceScore__c |
acme__LeadershipLevel__c |
Start Date Field |
CreatedDate |
vlocity_ins__RelationshipStartDate__c |
acme__JoinDate__c |
End Date Field |
— |
vlocity_ins__RelationshipEndDate__c |
acme__LeaveDate__c |
Comment Field |
— |
vlocity_ins__Comment__c |
acme__Comments__c |
Field List |
— |
["vlocity_ins__IsActive__c", "vlocity_ins__Color__c"] |
["acme__IsActive__c", "acme__YearsInGroup__c"] |

