Use Slack.com Incoming Webhooks

suggest change

Build the payload. Slack's incoming webhook expects JSON.

$Payload = @{ text="test string"; username="testuser" }

ConvertTo-Json builds the body. Invoke-RestMethod sends it:

Invoke-RestMethod -Uri "https://hooks.slack.com/services/yourwebhookstring" -Method Post -Body (ConvertTo-Json $Payload)

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents