Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Making a REST API call(HTTPS) for each item in array (http://www.mirthcorp.com/community/forums/showthread.php?t=219159)

mcalKno 05-23-2019 05:15 AM

Making a REST API call(HTTPS) for each item in array
 
I have an array of clientIds and I need to loop through the array and make an HTTPS GET call for each one. With the response of each one adding to a report. We currently do this manually, but Automating it would be beneficial and less problematic. Is this possible? I assume there would be a way to make a REST call from a transformer, which I could do while looping through the items in the array.

dcallanan 05-30-2019 08:03 AM

You could make a 2nd channel that is just the HTTP sender. and in your main channel loop through the array and call router.routeMessage. Then just store off each result.


All times are GMT -8. The time now is 12:04 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation