Webhook seems to only send header data/Other Power Automate issues
-
I’m trying to make use of the new Webhook feature with Power Automate, but it seems no matter what I do, it will not pass the actual data submitted.
I’m using the form below:
{"type":"form","data":{"fields":[{"id":"email-1","element_id":"email-1","form_id":"wrapper-7755-6699","parent_group":"","type":"email","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-7755-6699","validation":"","placeholder":"E.g. [email protected]","field_label":"Email Address"}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav"},"formName":"TestWebhook","version":"1.19.0","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","validation":"on_submit","akismet-protection":"1","form-style":"default","enable-ajax":"true","autoclose":"true","submission-indicator":"show","indicator-label":"Submitting...","form-type":"default","submission-behaviour":"behaviour-thankyou","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","submitData":{"custom-submit-text":"Send Message","custom-invalid-form-message":"Error: Your form is not valid, please fix the errors!"},"validation-inline":"1","form-expire":"no_expire","form-padding-top":"0","form-padding-right":"0","form-padding-bottom":"0","form-padding-left":"0","form-border-width":"0","form-border-radius":"0","cform-label-font-family":"Roboto","cform-label-custom-family":"","cform-label-font-size":"12","cform-label-font-weight":"bold","cform-title-font-family":"Roboto","cform-title-custom-family":"","cform-title-font-size":"45","cform-title-font-weight":"normal","cform-title-text-align":"left","cform-subtitle-font-family":"Roboto","cform-subtitle-custom-font":"","cform-subtitle-font-size":"18","cform-subtitle-font-weight":"normal","cform-subtitle-text-align":"left","cform-input-font-family":"Roboto","cform-input-custom-font":"","cform-input-font-size":"16","cform-input-font-weight":"normal","cform-radio-font-family":"Roboto","cform-radio-custom-font":"","cform-radio-font-size":"14","cform-radio-font-weight":"normal","cform-select-font-family":"Roboto","cform-select-custom-family":"","cform-select-font-size":"16","cform-select-font-weight":"normal","cform-multiselect-font-family":"Roboto","cform-multiselect-custom-font":"","cform-multiselect-font-size":"16","cform-multiselect-font-weight":"normal","cform-dropdown-font-family":"Roboto","cform-dropdown-custom-font":"","cform-dropdown-font-size":"16","cform-dropdown-font-weight":"normal","cform-calendar-font-family":"Roboto","cform-calendar-custom-font":"","cform-calendar-font-size":"13","cform-calendar-font-weight":"normal","cform-button-font-family":"Roboto","cform-button-custom-font":"","cform-button-font-size":"14","cform-button-font-weight":"500","cform-timeline-font-family":"Roboto","cform-timeline-custom-font":"","cform-timeline-font-size":"12","cform-timeline-font-weight":"normal","cform-pagination-font-family":"","cform-pagination-custom-font":"","cform-pagination-font-size":"16","cform-pagination-font-weight":"normal","payment_require_ssl":"","submission-file":"delete","store_submissions":"1","form_name":"TestWebhook","form_status":"draft"},"client_id":null,"integration_conditions":[],"behaviors":[{"slug":"behavior-1234-4567","label":"","autoclose-time":"5","autoclose":"true","newtab":"sametab","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","email-thankyou-message":"","manual-thankyou-message":"","submission-behaviour":"behaviour-thankyou","redirect-url":""}],"notifications":[{"slug":"notification-1234-4567","label":"Admin Email","email-recipients":"default","recipients":"{email-1}","email-subject":"New Form Entry #{submission_id} for {form_name}","email-editor":"You have a new website form submission: <br /> {all_fields} <br />---<br /> This message was sent from {site_url}.","email-attachment":"true","type":"default"}]},"status":"publish","version":"1.19.0"}
I’ve setup the Webhook Integration and there a couple things with that.
1. If I use the URL provided in Power Automate (trigger ‘When a HTTP request is received’), Forminator tells me ‘Failed to process request : Unauthorized’.
2. If I throw in an ampersand (&) at the end of the URL it accepts it, but it doesn’t seem to send any data then, only header information.Here is what the trigger receives when I submit the form (some data censored):
{ "headers": { "Connection": "close", "Accept": "application/json", "Accept-Encoding": "deflate,gzip", "Host": "prod-126.westus.logic.azure.com", "Referer": "https://prod-126.westus.logic.azure.com/workflows/########################################/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=##############################################################################", "User-Agent": "WordPress/6.0.3; https://dev.#########.### ForminatorWebhook/1.0", "X-Hook-Test": "true", "Content-Length": "89", "Content-Type": "application/json" }, "queries": { "/": "" }, "body": { "email_1": "Email Address", "form_title": "TestWebhook", "entry_time": "2022-10-21 09:59:21" } }
I’ve searched through Power Automate documentation and articles for hours trying different configurations and my only conclusion is that it’s something with the way Forminator uses the webhook feature that isn’t clear.
- The topic ‘Webhook seems to only send header data/Other Power Automate issues’ is closed to new replies.