Hey Flow XO Team,
Can I know if there is a way to change the body content in a Webhook & HTTP (success - status 200), or maybe redirect to another website?
Thanks
Hey Flow XO Team,
Can I know if there is a way to change the body content in a Webhook & HTTP (success - status 200), or maybe redirect to another website?
Thanks
You can’t change the status of the Webhook since it’s what the server response is.
If you wanted to manipulate the payload though you could always catch the webhook in FlowXO, parse the request content / response into the Code Service and add an input ‘Status’ which will use Webhook status as an input variable and then
if(Status == 200){
// do something
}
which would allow you to add the status to the body - quite a broad answer but there’s no example to work with!
Hi Joe,
I am trying to do something that I believe the OP was asking, to modify the “body” response on the Webhook itself, as I need the hook to return a blank page (status code OK, just shouldn’t be written to the page body itself, as the page body should be blank.)
I’ve tried some permutations of the suggestion you made, and cannot seem to get it to “catch” this status, and allow to make any overrides of the response itself.
Any chance you could elaborate on how to use the Code service to simply achieve a blank (empty) body response to the system that posted to the webhook URL?
Thanks,
Glenn @ VDO