How to create tree hold in hierarchical message type? #
Since the user now completely understand; How to create tree hold in the hierarchical message type, by hitting upper link now we guide to follow below:
How to Use SKYVVA V3 IntegrateWithIMessage Inbound API Services
- Now Create an Integration
- Create Inbound Interface
Search
- MetaData Provider
- Repository
- Source/Target Message Type
- Click on Open Mapping Button
- Map the target fields according to AccountTestV3, ContactTestV3, CaseTestV3 to the Salesforce Source sObject
- Save
- User have to map node to node first Example: AccountTestV3 to Account, ContactTestV3 to Contact(AccountId) & CaseTestV3 to Case(ContactId)
- Similarly Copy both InterfaceID which is _V3_Interface_Contact_1.1 & _V3_Interface_Case_1.1.1 after mapping from IChainedInterface section’s Related List of V3_Interface
- Copy both Interface Id’s to our json code “a0a2v00000ZibjuAAB””a0a2v00000ZibjvAAB”
Go to Soup UI
- Click on REST
- Create a New Project
- End point https://skyvva-test-dev-ed.my.salesforce.com
- REST Project 3
- Provide Name Authorization
- Method POST
Now follow the fig. Which is shown below
URL : https://skyvva-test-dev-ed.my.salesforce.com
Resource : /services/apexrest/skyvvasolutions/V3/IntegrateWithIMessage
[aux_code language=”javascript” theme=”tomorrow” title=”” extra_classes=””]{
“request”:{
“mode”:”Synchronous”,
“integration”:”V3_Integration”,
“rootInterface”:”V3_Interface”,
“responsePayloadFormat”:”json”,
“messages”:[
{
“msg”:{
“Name”:”IM#2020-01-03 01:21:55.639001″,
“skyvvasolutions__Type__c”:”InBound”,
“skyvvasolutions__Status__c”:”New”,
“skyvvasolutions__HasChild__c”:true,
“skyvvasolutions__HLevel__c”:0,
“skyvvasolutions__HPath__c”:”/Account[0]”,
“skyvvasolutions__isRoot__c”:true,
“skyvvasolutions__TransferId__c”:”1234″,
“skyvvasolutions__ProcessMode__c”:”Hierarchical”,
“skyvvasolutions__Data__c”:”{\”AccountNumber\”:\”10001\”,\”Name\”:\”TestAccount1\”,\”BillingCountry\”:\”Cambodia1\”,\”BillingCity\”:\”Phnom Penh1\”,\”Account_ID\”:\”A-001\”}”,
“skyvvasolutions__External_Id2__c”:”RSAZ-JZWCYZ0M”,
“skyvvasolutions__Integration__c”:”a0W2v000019f2zPEAQ”,
“skyvvasolutions__Interface__c”:”a0a2v00000ZiaweAAB”
}
},
{
“rootId”:”RSAZ-JZWCYZ0M”,
“parentId”:”RSAZ-JZWCYZ0M”,
“msg”:{
“Name”:”IM#2020-01-03 01:21:55.639001″,
“skyvvasolutions__Type__c”:”InBound”,
“skyvvasolutions__Status__c”:”New”,
“skyvvasolutions__HasChild__c”:true,
“skyvvasolutions__HLevel__c”:1,
“skyvvasolutions__HPath__c”:”/Account[0]/Contact[0]”,
“skyvvasolutions__isRoot__c”:false,
“skyvvasolutions__TransferId__c”:”1234″,
“skyvvasolutions__ProcessMode__c”:”Hierarchical”,
“skyvvasolutions__Data__c”:”{\”Cont_ID\”:\”C-001\”,\”Last Name\”:\”Dara1\”,\”FirstName\”:\”Contact1\”,\”Email\”:\”test.2019_1111@gmail.com\”,\”Phone\”:\”1111\”}”,
“skyvvasolutions__External_Id2__c”:”HOIK-JZWCYZ1Z”,
“skyvvasolutions__Integration__c”:”a0W2v000019f2zPEAQ”,
“skyvvasolutions__Interface__c”:”a0a2v00000ZibjuAAB”
}
},
{
“rootId”:”RSAZ-JZWCYZ0M”,
“parentId”:”HOIK-JZWCYZ1Z”,
“msg”:{
“Name”:”IM#2020-01-03 01:21:55.639001″,
“skyvvasolutions__Type__c”:”InBound”,
“skyvvasolutions__Status__c”:”New”,
“skyvvasolutions__HasChild__c”:false,
“skyvvasolutions__HLevel__c”:2,
“skyvvasolutions__HPath__c”:”/Account[0]/Contact[0]/Case[0]”,
“skyvvasolutions__isRoot__c”:false,
“skyvvasolutions__TransferId__c”:”1234″,
“skyvvasolutions__ProcessMode__c”:”Hierarchical”,
“skyvvasolutions__Data__c”:”{\”Subject\”:\”ErrorCase1\”,\”SuppliedPhone\”:\”1111\”}”,
“skyvvasolutions__External_Id2__c”:”V3GP-JZWCYZ1Z”,
“skyvvasolutions__Integration__c”:”a0W2v000019f2zPEAQ”,
“skyvvasolutions__Interface__c”:”a0a2v00000ZibjvAAB”
}
}
]
}
}
[/aux_code]
Go back to Salesforce
Click on Message Monitoring Tab
- Select your Integration Name
- Select Interface Name
- OK
- Scroll down to Message section
- Click on Search Button
- See record Create Successfully