Posting Umbraco Forms to Slack - How to get fields to display in Slack?

I’m trying to setup a Workflow in Umbraco Forms on my v17 site in Umbraco Cloud. I would like to post the form submission to Slack as a message in a channel. I have the webhook setup and the workflow is posting to Slack, but I can’t figure out how to display any of the forms data in the message.

Is the forms data coming through as json to the Slack webhook? I created “Data Variables” in the webhook, but the obvious options don’t seem to be working (name, message, etc). What does the HTTP body for the post from Umbraco Forms look like?

Anyone get this working?

Might not be the case, but are your fields marked as sensitive data? If so you might need to set the workflow to allow access to sensitive data too, otherwise those sensitive fields are not included.

Looks like you need a dataVariable simply of text..

1 Like

That worked! That’s for taking the time to check that out #h5yr