Can anyone please advise me how I can resolve this below issue on Mirth :
I have an API end-point of One Client example: (Https://xyzclient) and I have to get data from this API and send that to one of my Database.
What I am doing is I’m putting the details of this API in the HTTP sender of the destination connector and by this I am getting the API response values in Response section of Destination connector but not sure how I can exclude value from there and send to another destination or My DataBase and channel.
Any Response will be highly appreciable.
What I am doing is I’m putting the details of this API in the HTTP sender of the destination connector and by this I am getting the API response values in Response section of Destination connector but not sure how I can exclude value from there and send to another destination or My DataBase and channel.
Shamaque Shaikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I think what you may be looking for is the response transformer.
While on the Destinations tab, in the “Channel Tasks” pane to the left, click “Edit Response”.
Then you can gain access to the response value with something like
msg['nameOfYourResponseValue'];
So a good way to store that value to use later, you would be something like
channelMap.put('returnedvalue',msg['nameOfYourResponseValue']);
You can then use either channelMap.get(‘returnedvalue’) from within javascript, or the drag and drop from the UI to write out to your database.