Entity Relationship in Scribe Connector CDK | CloudFronts

Entity Relationship in Scribe Connector CDK

Posted On May 25, 2017 by Shailesh Wath Posted in

Introduction:

This blog explains how to define relationship between Entities in Scribe Connector CDK.

Problem Statement:

We often get requirement from Client to define relationships between entities in custom Scribe Connector

Solution:

Below is code snippet which explains how to define relationship between Customer and Contact.

Step 1: Define child enity (Contact) Object definintion and add to objectDefinitions

Step 2: Define parent enity (Customer) Object definintion

Step 3: Define relationship between entites, points to remember as below:

  • ThisObjectDefinitionFullName property set parent entity name
  • RelatedObjectDefinitionFullName property set child entity name
  • RelationshipType property set direction as “RelationshipType.Child”
  • ThisProperties & RelatedProperties property should be same in both Parent and child entity.

Step 4: Add relationship to parent entity(Customer) and add parent entity(customer) to objectDefinitions.

Conclusion:

Hope above scenario of defining relationship between entities help in real scenario of development.

 


Share Story :

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close