Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Post request macro ingesting parameters from current request's JSON response?

Ryan Aug 09, 2019 05:02PM UTC

I have a scenario where I am trying to take the output from an initial request's response and feed it into a second request. This can be done with traditional PARAM_BODY and PARAM_URL parameters using a macro (pre or post) but how would I go about this when the initial request's response returns JSON (or XML)?

Been working on this and the only way to pull this off seems to be an extension that builds a request and takes the place of one of the two requests.

I'm assuming that the only way to pull the values from any resulting JSON or XML is to use bytesToString and perform a regex search. Is this an incorrect line of thinking? Is there an easier way?


Liam Tai-Hogan Aug 16, 2019 01:44PM UTC Support Center agent

Thanks for this request. We’ve added a ticket to our development backlog to consider adding this feature.


Post Your public answer

Your name
Your email address
Answer