Hi Jaqueline,
The
Post Message (Blocks) action is useful when you are sending a Slack message that is built with "blocks". Slack has a feature called
Block Kit. Instead of plain messages with only text, you can create more complex messages that have things like buttons and menus. Slack refers to these buttons and menus and such as "blocks."
Slack also has a tool called
Block Kit Builder. This tool allows you to visually build and design your own Block message (drag and drop). On the left-hand side, it shows what your message will look like in Slack. On the right, it shows the JSON that defines this Block message. I recommend designing your Block message in Block Kit Builder first. Then copy the JSON text (note in the screenshot below, just copy the inside of "blocks" (like what I highlighted in gray, including the square brackets)).
The copied JSON text can then be placed in a Text data item in your Blue Prism process. And then that data item can be your input parameter for
Blocks.
If you need to change some text or value in your Blocks message dynamically, you can use a
Calculation stage and the
Replace()
function to make the change. Here I am changing the word "well" to "great":
Last item I will note is the "Text" input parameter for the Post Message (Blocks) action. If you provide some text for this input parameter, it will show it in the notification for the user that receives the Slack message.
------------------------------
Charlie Kovacs
Sr. Digital Exchange Engineer
Blue Prism
Austin, USA
------------------------------
Charlie Kovacs