You are viewing limited content. For full access, please sign in.

Question

Question

Web Request - Json header response

asked on April 28, 2021

I want to use below json response in  my Run web request rule activity within workflow. How I can extract/split values from Json and use it in our workflow ? 

"[{\"myname\":\"pratik\",\"test\":\"jsonresponse\"}]"
json response.png
rule.png
rule.png (25.04 KB)
0 0

Replies

replied on April 28, 2021

Pratik,

In the Web Request Rule on the 'Request' tab you can test your web request rule by clicking on the 'Test Web Request' button.  If you get a valid response from your web service you can then go to the 'Response' tab  to verify the JSON response.  Just below the JSON response you will see a section with the header 'Response body'.  Click on the 'Add output token' to add a new output token.   In the 'Output name' field type in the name you want to give to the output token and in the 'parsing string' field type in the JSON element name to retrieve.  In your case the two output tokens will have parsing string values of 'myname' and 'test'.

Once you publish the rule then those two tokens will be available for use later in your workflow. 

 

3 0
You are not allowed to follow up in this post.

Sign in to reply to this post.