Slack: Messages
Summary
This module contains actions for sending messages & approval requests to a Slack channel.
Before you Start
Ensure you have created a PPA Slack app, & enabled the relevant slack app scopes.
See the Integration page for more information
Supplying Sensitive Data
You should always use a PPA Vault integration to provide sensitive data to a plugin action.
Actions
slack.messages.
send_approval_request
Send an approval request to a Slack channel & wait until it is approved/rejected.
Once the request is responded to, a message will be posted to Slack containing the following:
- Whether the request was approved or rejected
- The username of the person who responded to the request
Example screenshots of all the Slack messages can be found under the example.
Slack Channel
The message will be sent to the channel supplied to the action.
Minimum Plugin Version: 2.0.1
Input
Output
A dictionary with the following keys:
-
approved:
true
if the request was approved,false
if it was not -
responder: the PPA user who submitted the response
Example
1 2 3 4 5 6 |
|
Approval Request Screenshot
Approved Message Screenshot
Rejected Message Screenshot
slack.messages.
send_file
Send a file to a Slack channel.
File Considerations
Minimum Plugin Version: 2.0.1
Input
Output
Nothing is outputted by this action.
Example
-
Save a file to the PPA workspace
-
Send the file to a selected slack channel
1 2 3 4 5 6 7 8 9 10 11 |
|
slack.messages.
send_message
Send a message to a Slack channel.
Slack Channel & Rich Messages
View the Slack block kit builder here for more information on creating rich messages.
Minimum Plugin Version: 2.0.1
Input
Output
Nothing is outputted by this action.
Simple Message
1 2 3 4 5 |
|
Markdown Message
1 2 3 4 5 6 7 8 9 10 |
|