![]() ![]() Step 3) Obtain an Authentication Token from your Slack Workspace (If you’d rather have a package that doesn’t include this flow and require these dependencies, let us know.) Note however that these dependencies are only used for the sample harness flow “Salesforce Slack Administrator”. Install: Datatable version 4.0.3 or higher Install: Flow Screen Components Base Pack version 3.0.6 or higher Install: Flow Actions Base Pack version 3.0 or higher Target orgs need to have the following package dependencies installed, in order: Install Step 1) Install Required Package Dependencies If you know the thread_ts value for the previous message (it’s basically a message id) and you provide it, Slack will make the new message a child of the old message. Thread_ts is used when you want to instruct Slack that the message you’re posting is a response to a previous message. Note that the ‘text’ input is used in notification pop ups. If you don’t want to deal with blocks, you can send plain text in the ‘text’ input. You can insert merge fields (references that look like ) and Flow will replace the merge fields with the appropriate values when the flow is executed. You can construct them here ( ) and then copy and paste the json (everything inside the ) into a Text Template or action input. ![]() You then pass the strings into these actions. To create rich Slack messages, you assemble JSON strings in the Slack format, which they call Block Kit. To learn about the different inputs, take a look at api pages like this one: For this, you’ll probably want to have a User field that contains the user’s Slack Id. Your flow can create the channel and invite the right group of people. Spinning up channels for particular circumstances, such as the creation of a case or a deal opportunity. (There are plans in the works for improving this situation) Basically, you put the trigger in flow 1 and have it dynamically launch flow 2, where you put your Slack actions. Note that you currently have to use the dynamic technique shown here. Trigger on a Schedule or a Record Change using Flow Builder and use these actions to do something in Slack. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |