Saving Json from Webservice Element in Survey Flow | XM Community
Skip to main content

Saving Json from Webservice Element in Survey Flow

  • December 30, 2021
  • 2 replies
  • 69 views

Forum|alt.badge.img+2

Is there a way to save the json return payload of the webservice element in Survey flow as embedded data?
I'm getting a multiple rows from the webservice that I'm calling and I want to parse them dynamically in Javascript instead of saving them as individual embedded data like row.0, row.1, row.2, and so on. I tried saving the parent object "row" but I'm not getting any value.

Note: the webservice call needs to be done in Survey flow and not is JS.

Any help is greatly appreciated.

2 replies

Forum|alt.badge.img+18
  • Level 3 ●●●
  • December 31, 2021

darelS There is no way to save the complete return payload, probably this functionality is not given intentionally to avoid any system break.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 1, 2022

You could try and cook up a Lambda at the backend that returns the entire JSON as the body.