Skip to main content

Web Request not returning JSON output

Comments

2 comments

  • Nico Burgerhart

    How is the Expect input parameter on the Send Web Request activity configured?

    https://docs.vertigisstudio.com/workflow/latest/help/Default.htm#wf5/help/activities/web-request.htm

    Expect
    Type: "blob" | "json" | "text" | String
    The expected type of the response.
    For example, if json is selected, the response will be parsed as JSON and the json output argument will be assigned.
    1
  • Dan Joyce

    Nico Burgerhart, I forgot to mention that I had tried setting Expect = json previously and it would only return 'undefined'.  I don't have a lot of experience with the Send Web Request activity, so I tried a few other combinations of setting the input parameters as Form input or Json input, with and without the Expect parameter set.  Each time it looked like the f parameter was being ignored and this was the clue.

    Perhaps it is obvious, but when I added "f":"json" to the Headers and have Expect = json, I got the result I was after.

    Thanks for the nudge in the right direction!

    1

Please sign in to leave a comment.