Learning Objectives:-
This unit describes:-
- About the Normal Interface?
- About the Chained Interface?
- And the difference between Normal and Chained Interface?
- Recommendations when to use which model.
Introduction:- #
Normal Interface:- #
The normal interface is used where the need is to handle flat data structure and thus post into a single sObject. So its normal form of creating an interface.
Steps for creating Normal Interface which we can model with SKYVVA is given below:-
- Create Integration.
- Create Interface
- Upload File by choosing the option of “Choose File” and then save it
#
- Do Mapping as shown below and save it:-
#
- Check the Normal Interface is created.
#
Chained Interface:- #
The Chained interface is needed when the data is hierarchical, at this time we cannot use normal interface. Mostly in real business, data is not always simple and flat, so the chained interface is having a very important role.
The chained interface can be created Manually or generated Automatically. So when we use Tree mapping in that case chained interface generated automatically. On the other hand, we can create manually by moving in a related list.
The two ways of creating Chained Interface are given below:-
- Creating Chained Interface manually.
- Generating Automatically Chained Interface.
1. Creating Chained Interface manually:- #
Steps for creating IChained manually is given below:-
- Create Integration.
- Create 2 Interfaces. (Account and Contact).
- Create IChained Interface as shown given below:-
- Click on “related”:-
- Click on “New IChained Interface”:-
- Create IChained Interface as shown below:-
- Check the created IChained below:-
2. Generating Automatically Chained Interface:- #
Steps for generating IChained Automatically is given below:-
- Create Metadata Provider.
- Create Istructure Repository.
- Create a Message Type.
- Create Integration.
- Create Interfaces(Account, Contact).
- Add MetaData Provider, Istructure Repository, Message Type as show below:-
- Do Mapping and save it as shown below:-
- Check the IChained which is generated Automatically below:-
Difference between the Normal and Chained Interface: #
The main difference between the normal and chained interface is that Normal interfaced can handle only flat structure data while Chained interface can handle hierarchical data.
Recommendations:- #
- When we will have simple flat data structure in this case we will use Normal Interface.
- When we will have a Hierarchical data structure, in this case, we will use the Chained Interface.
- In Chained interface, we have two options:-
- Creating Chained Interface manually is good but Generating Automatically Chained Interface is best.
- Using Tree mapping for Generating Automatically Chained Interface is the best option.