function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
roberto sandovalroberto sandoval 

Integrating two external systems.

Hello everyone, 

Im attempting to pull data from two external systems. Once I recieve the complete data set(from both systems), I'd need to provide it to another application in order for it to render on the UI. Whats the best approach? Im thinking I recieve the first part of data through a rest call, and once i get the repsonse, update a field which would then trigger the second data pull.  I would somehow need to merge the two data sets and kick out another outbound message for the UI. Does this make sense? Thanks for the help. 
Karan Shekhar KaulKaran Shekhar Kaul

Hi Roberto,

As per my understanding of your problem statement, I feel main component of this integration is UI. Calling rest service one after another will increase wait time on UI unless you show first API call's response immediately on UI. If you have to perform some processing on both responses first & then show them on UI, it will be wise to call both services simultaneously.

May be you can also show some visual waiting feedback on UI till you send response to it.

Hope this helps.