In this section, you will understand to do inbound processing of integrate V4 by inserting the child records and also updating parents’ records. Our mapping will allow you to append the parent reference field to be mapped.
Pre-requisite #
- Create Integration and Inbound interface with operation insert
- Create a message type
- Link a message type for the inbound interface
- Mapping
Note: You can append any parent reference field. Therefore, you will able to map the parent fields. For example, if you append on AccountId(reference), you will see the parent’s field as screenshot below. You can map the AccountNumber to the AccountNumber of Account field in order to update the AccountNumber field on the Account of the case’s parent.
- Click save mapping
- Enter to postman
- Fill in the URL of your org concat with /services/apexrest/skyvvasolutions/V4/integrate
- Fill Query Params
- integration Name
- interface Name
- mode Processing
- response-format
- request-format
-
-
- Fill Token of Authorization
-
Here is the sample XML payload
- Click Send button
It will create a completed message as screenshot below
The case record has been inserted then the link account and contact
Payload field | Value | Description |
accId | 0011X000018ymwiQAA | Link this account id to the case |
contactId | 0031X00000wpWYLQA2 | Link this Contact id to the case |
Description
|
Insert Case and link to Account and Contact and update parent fields such as Account, DescriptionAccount,Description of case, DescriptionContact, LastName…..
|
The value will pass to the Description field of case sObject |
Subject
|
Insert Case
|
The value will pass to the Subject field of case sObject |
Update the Account’s field of Case Parent
Payload field | Value | Description |
AccountNumber |
Acc002
|
Update the AccountNumber field of the Account that is the case’s parent |
DescriptionAccount |
Insert the Case and Update AccountNumber to Acc002
|
Update the description field of Account sObject that is the parent of the case |
Update the Contact’s field of Case Parent
Payload field | Value | Description |
CompanyName | Skyvva | Update CompanyName to createby user of contact parent of case |
LastName |
Sophea
|
Update the description field of Account sObject that is the parent of the case |
DescriptionContact |
Insert Case and Update LastName to Sophea
|
Update the description field of contact sObject that is the parent of the case |