SK SKYVVA Documentation

3. How to create hierarchical interface using Foreign Key?

Learning Objectives After completing this unit, you’ll be able to:

Introduction

We can link two different object with each other using foreign key or tree mapping.

What Are Hierarchical Interfaces?

What is the foreign key?

A FOREIGN KEY is a field (custom fields) in one Interface that refers to the PRIMARY KEY . The Interface containing the foreign key is called the child Interface, and the Interface containing the candidate key is called the parent Interface.

How to create a Foreign key?

This is also called an object field in the account object. Follow the given steps to create the object field:

here we get the object field on the Target Account Salesforce object.

we can  create a Hierarchical interface in two ways:

2. Tree Mapping:

Create hierarchical Interface using foreign key:

Objective:

To create a parent-child relation between the account interface and contact interface using the foreign key.

Pre-requisite:

Follow the given steps :

Please drag source field to Target field->look at Data Mapping->Tick Ext ID->Click Save button.

Go to related tab -> Scroll down page to IChainedInterface -> Click New IChained Interface

Please drag source field to Target field->look at Data Mapping->Tick Ext ID->Click Save button.

Now you get a Foreign key.

Go to integration->Details->Manual Laod->Chose Inbound Interface (Active) is Account in Combo box->Choose Data Type is CSV->Click Choose File Button and Browse to choose file->Click Open Button->Click Upload Button

Cross down Total Records Found Section in Manual Load level-> Tick Records that want to load to salesforce->Click Push Button->Click Message Board to check monitory Message

Choose Interface Name to check message depend on Name and Click Search button to show message.

Finally, you can get Account has relationship with contact like screen shot below. Account Name is Test01 has five contact such as Ra1 Dr1.......

Open this article in the interactive viewer →