TL;DR;
- Setup a Slack authentication token here. The documentation indicates there are some newer ways to acquire a token, but for now we'll go with the low effort approach.
- Setup the PSSlack module for PowerShell found here. Optionally, run Install-Module PSSlack from an elevated PowerShell console. Big thanks to @pscookiemonster for putting this together.
- Create a SPE workflow action like described here.
- Update the script to send messages to Slack.
- Celebrate!
Example Notification
Getting Started
Install the PSSlack module.
Create a new PowerShell script in Sitecore. Here I created one for Slack and another for email.
Write the necessary code to post into Slack
Configure Workflow Action
I hope you found this helpful. Feel free to reach out in the Slack channel #module-spe for help with the SPE module or just to say thanks. If you haven't already, signup here.
Also, check out this post on when to choose Sitecore Slack and Sitecore Stack Exchange.
No comments:
Post a Comment