Save Raw Data in Web Service Element in Survey Flow | XM Community
Skip to main content
Question

Save Raw Data in Web Service Element in Survey Flow

  • December 20, 2021
  • 3 replies
  • 181 views

Forum|alt.badge.img+2

I need to call a webservice in Survey flow. That webservice is returning just a count/number with no field specify in the return payload. Because there's no field in the payload, I cannot save the returned data as embedded data. However, when I view the raw data. the count/number is there. Is there a way to save the raw data as embedded data?

3 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • December 25, 2021

If you have control over web service, then it is recommended to make the response in JSON format to get easily captured in qualtrics through web service element, else make use of JS in a question to call the API.


Forum|alt.badge.img+2
  • Author
  • December 27, 2021

rondev, Thanks for your suggestion, unfortunately both are not possible in my case. I can't change the standard webservice that I am calling. Also, the webservice doesn't allow Cross-Origin Requests, so I can't call it via JS. The only option for me is using the webservice element in survey flow.


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • December 27, 2021

https://community.qualtrics.com/XMcommunity/discussion/comment/42551#Comment_42551One of the way that I can think of is to create and use a new web service which can parse the result of this web service.