Hi,
I’m creating a workflow that gets triggered for every new survey submission to send data (of that submission only) to an external service using the WebService task. This works fine using Piped Text in the json payload to the external service. But this way I have to extract each answer separately with a piped text statement.
Now I’m looking for a way to send all answers from a single survey submission at once, so that I don’t have to enter each field separately as a Piped Text item. For my use case, almost any json schema will do, as long as it contains the question IDs and corresponding answers.
Is there a way to do this? For example, is there a piped text statement that contains all survey data as a json blob? Or is there a way to iterate over all questions/answers in a javascript Code task so that I can construct a suitable javascript return object?
Cheers,
Mark