web stats
Mirth Community - View Single Post - Get Token from destination response and pass to new Channel in Mirth
View Single Post
  #2  
Old 10-13-2016, 07:00 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,116
narupley is on a distinguished road
Default

Open up the response transformer and set your response data types to JSON. Post that sample payload in the inbound template, then you can easily create a Mapper step to extract the token and store it in the channel map.

Then you can use a subsequent Channel Writer destination, and in the Message Metadata table include the name of the variable you created.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote