Parsing external web service response | XM Community
Skip to main content
Question

Parsing external web service response

  • May 26, 2020
  • 2 replies
  • 124 views

Forum|alt.badge.img

We are calling an external web service in the survey flow and saving the response as embedded data. Here the response contains multiple records as array. We would like to know if there is any way to iterate through the response in qualtrics so that the embedded data can be saved in a specific format we require.

2 replies

Forum|alt.badge.img+2
  • Level 2 ●●
  • May 26, 2020

The only way i can think of is to create a question in a block following the web service survey flow, and in the question, add javascript to pull the embedded data value and parse it and save it back into another embedded data field. And in block follows it, it can use the parsed values.


Forum|alt.badge.img+2
  • Level 2 ●●
  • May 26, 2020

another thing you can try is try to use Spread Syntax in the web service survey flow block, i am not sure if Qualtircs support spread syntax, but it's worth a try:
Spread syntax