Re: Surveygizmo Webhook Payload Issue
Hey there! I'm not sure if anyone's still paying attention to this thread but just in case, I've been able to do exactly this and wanted to share. The problem with SurveyGizmo/Alchemer's webhook output is, it's in urlencoded format which is tricky to deal with. You have to manipulate the string a bit first. Here's what I did:
1) Create a new flow with a HTTP Request trigger. When you save the flow, this will generate a URL that you can store in your SurveyGizmo/Alchemer survey as a webhook action (which will let you send over your survey data).
2) Create a Compose action with the following Expression:
base64ToString(trigger()['outputs']['body']['$content'])
This converts the webhook payload to plain text. Then you can manipulate it!
3) Create a second Compose action with the following Expression:
split(outputs('Compose'),'&')
This splits the payload up at every & character (assuming 'Compose' is the name of your first Compose action).
4) Initialize a Variable with type Array, with the Value set to the Outputs of the second Compose action.
Now you can refer to any data point within your payload using standard array notation (e.g., ArrayVar[1]).
I was able to make all kinds of neat stuff this way! 🙂
I hope that helps!