web stats
Making a REST API call(HTTPS) for each item in array - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2019, 05:15 AM
mcalKno mcalKno is offline
 
Join Date: Apr 2015
Location: Pennsylvania
Posts: 247
mcalKno is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 05-30-2019, 08:03 AM
dcallanan dcallanan is offline
What's HL7?
 
Join Date: Jul 2016
Posts: 1
dcallanan is on a distinguished road
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:28 AM.


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