Slack Webhook Payload Error

Hi I am trying to get reports to send me a slack message everyday with the work left to invoice.

Which is fine I can get that to work no problem.

What I am trying to do is integrate the below but when I add it to the Post Payload it doesn’t run.

curl -X POST --data-urlencode “payload={“channel”: “#crm-reminders”, “username”: “webhookbot”, “text”: “This is posted to #crm-reminders and comes from a bot named webhookbot.”, “icon_emoji”: “”}” https://hooks.slack.com/services/“WEBHOOK URL”

I can get this to run
payload={“text”: “A very important thing has occurred! <https://alert-system.com/alerts/1234|Click here> for details!”}
If I remove the Payload= at the beginning.

Any ideas what I may be doing wrong.

Oh and I have tried the web hook set to custom and Slack

Thanks

Blake

0 3 513
3 REPLIES 3
Top Labels in this Space