Process data from multiple sources using SCI
Recently I had the challenge to request data from multiple sources using SAP Cloud Integration using this flow:
Straight forward, you would implement this somewhat like this:
The problem is that when you perform the query of data source 2, the response from data source 1 is lost. This is where the parallel multicast come in handy. This enables you to process multiple requests. One line should point to data source 2, while the other line should do nothing:
This looks OK, but in the end you would only have either the response of data source 1 returned, or the response of data source 2. To combine these two flows you’ll need the gather step:
This step will paste the response of data source 1 below the response of data source 2. Complete with a mapping step to create your desired return message. You can add as many request-reply steps as needed.
Thanks for sharing this, Iddo! Looking forward to more tips from you!