Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member604434
Participant
0 Kudos
Connector Builder Guide – How to Chain Resources Together

Open Connectors consists of over 170 connectors to 3rd Party Applications natively embedded in the SAP ecosystem. If the Connector you need does not exist in the catalog, you can build it quickly with Connector Builder. This instruction guide will walk you through using this tool, with concrete examples throughout. The beginning, Part 1, can be found here.

 

In this scenario, we’ll add two resources to the Salesforce Open Connector - /contact-account /{id} and /contact-account-2/{id}.

The goal is to first get a contact, and then use the accountId that is returned to grab the account details and finally add a field, AccountName, to the returned contact object.

The first thing we’ll do is create both resources and choose the second resource in the “Next Resource” dropdown field in the first resource we will be call (the Contact object resource).



The second resource will call the Account object and will have a prehook and posthook. The prehook is grabbing the accountId from the contact object response and defining the vendor path with it.



The posthook is taking the first resource’s response, the contact object, and then adding a field from the second resource’s response - the AccountName.




Now, when we run the first resource:





We receive a response that also includes the AccountName, which was taken from the account object.

 
Labels in this area