- Overview
- Adobe Sign
- Alteryx
- Amazon Comprehend
- Amazon Connect
- Amazon Rekognition
- Amazon Textract
- Box
- Release notes
- About the Box activity package
- Fix XAML After Package Update
- Project compatibility
- Setup
- Technical references
- Box Scope
- Commit Session
- Create File Version Session
- Create Upload Session
- Upload Part
- Delete Old Version
- Get Versions
- Promote Version
- Upload File Version
- Copy File
- Delete File
- Download File
- Get File Comments
- Get File Info
- Get File Info Details
- Get File Lock Info
- Lock File
- Move File
- Unlock File
- Upload File
- Copy Folder
- Create Folder
- Delete Folder
- Get Folder Info
- Get Folder Items
- Rename Folder
- Search For Content
- Execute Method
- Cognitive
- DocuSign
- Release notes
- About the DocuSign activity package
- Project compatibility
- Setup
- DocuSign Scope
- Invoke DocuSign Operation
- Create Envelope
- Create Envelope And Send
- Create Envelope From Template
- Create Envelope Recipients
- Get Document
- Get Documents
- Get Envelope
- Get Form Data
- Send Envelope
- Update Envelope
- List Attachments
- List Custom Fields
- List Documents
- List Envelope Status Changes
- List Recipients
- Create Bulk Send List
- Create Bulk Send Request
- Get Bulk Send List
- Get Bulk Send Lists
- Create Template Custom Fields
- Create Template Recipients
- Get Template
- List Templates
- Google Vision
- Jira
- Release notes
- About the Jira activity package
- Project compatibility
- Setup
- Jira Scope
- Execute Method
- Add Attachment
- Delete Attachment
- Download Attachment
- Get Attachments
- Add Comment
- Delete Comment
- Get Comments
- Create Component
- Delete Component
- Get Components
- Search Dashboards
- Create Filter
- Get Filters
- Create Issue Link
- Delete Issue Link
- Get Issue Link Types
- Get Issue Links
- Add Watcher
- Assign Issue
- Clone Issue
- Create Issue
- Delete Issue
- Get Issue
- Get Watchers
- Remove Watcher
- Search Issues Using JQL
- Transition Issue
- Update Issue
- Create Project
- Delete Project
- Get Project Types
- Get Projects
- Update Project
- Get Transitions
- Create User
- Delete User
- Find Users
- Marketo
- Microsoft Dynamics
- Microsoft Dynamics Finance and Operations
- Microsoft Translator
- Microsoft Vision
- Oracle Integration Cloud
- Oracle NetSuite
- Salesforce
- Release notes
- About the Salesforce activity package
- Project compatibility
- Setup
- Quickstart
- Salesforce Application Scope
- Create Bulk API Job
- Get Bulk API Job
- Get Bulk API Job Results
- Start or Abort Bulk API Job
- Assign File
- Download File
- Upload File
- Composite Request
- Delete Record
- Get List View Records
- Get Record
- Insert Record
- Update Record
- Upsert Record
- Execute Report
- Execute SOQL
- Format Column Names
- Format Labels And Values
- Lightning REST API Request
- Search
- SAP BAPI
- ServiceNow
- Slack
- Release notes
- About the Slack activity package
- Project compatibility
- Setup
- Technical references
- Quickstart - Channels and Messages
- Quickstart - Search, Download, and Reply
- Smartsheet
- Release notes
- About the Smartsheet activity package
- Project compatibility
- Setup
- Technical references
- Quickstart: Working With Rows
- Smartsheet Application Scope
- Attach File
- Attach URL
- Delete Attachment
- Get Attachment
- List Attachments
- Add Comment
- Delete Comment
- Get Comment
- List Discussions
- Copy Folder
- Create Folder
- Delete Folder
- Get Folder
- List Folders
- Add Group Members
- Get Group
- List Groups
- Remove Group Member
- Get Report
- List Reports
- Add Rows
- Copy Rows
- Create Discussion on Row
- Delete Rows
- Get Row
- List Rows
- Move Rows
- Update Rows
- Copy Sheet
- Create Sheet
- Create Sheet From Template
- Download Sheet
- Get Sheet
- List Sheets
- Update Sheet
- Add User
- Get User
- List Users
- Remove User
- Copy Workspace
- Create Workspace
- List Workspaces
- Import Sheet From CSV / XLSX
- Invoke Smartsheet Operation
- Search Activity
- Send Via Email
- Share Object
- SuccessFactors
- Tableau
- Twilio
- Workato
- Workday
Quickstart - Channels and Messages
The purpose of this guide is to help you create a working sample with different Slack activities, including Create Channel, Invite to Channel, Send Message, and Get Messages.
This working sample enables you to quickly verify the connection to your Slack workspace and get familiar with the included activity's input/output datatypes.
After completing the steps in this guide, you'll have an automation sequence that does the following:
- Establishes a connection to your Slack workspace (Slack Scope).
- Creates a new channel in your Slack workspace (Create Channel).
- Invites a user to your new channel (Invite to Channel).
- Sends a message to the channel (Send Message).
-
Verifies the results of the Create Channel, Invite to Channel, and Send Message activities by outputting the channel's messages and user information (Get Messages, For Each, and Write Line).
Build your project
- Add the Slack Scope activity to your project.
- Enter the ClientID for your Slack app.
-
Enter the ClientSecret for your Slack app.
- For more information about the Client ID and Client Secret, see Create new Slack app in the Setup guide.
-
From the Scopes drop-down list, select all of the listed scopes.
* For more information about scopes, see Add app permissions in the Setup guide.
-
Click the Connect button in the Design Panel.
* For more information about this button, see Connect and Revoke Token in the Slack Scope activity details page.
- Add the Create Channel activity after the Slack Scope activity.
- Create and enter a
String
variable for your Channel Name (e.g, channelName with default value "slack_quickstart"). -
Create and enter a
String
variable for the ChannelID (e.g., newChannel)- For more information about the allowed name values, see Channel Name in the Create Channel activity details page.
- Add the Invite to Channel activity after the Create Channel activity.
- In the Channel property, enter the
String
variable you created for the ChannelID property in the Create Channel activity (e.g., newChannel). -
Enter a Slack user that you want to invite to the channel using the Slack's username syntax (e.g.,"Jean.Grey").
- You must enter a user that belongs to the workspace that you're Slack Scope is connected to.
- Add the Send Message activity after the Invite to Channel activity.
- In the Conversation property, enter the
String
variable you created for the ChannelID property in the Create Channel activity (e.g., newChannel). -
Create and enter a
String
variable for the Text property (e.g., messageText with default value "Welcome to "+channelName).-
While it's good practice to create and enter a
Message
variable for the Message output property, for this example you'll not need to because it is not applicable when you verify the activity results.
-
Test your project
- To verify that your new channel was created, the users invited, and the message was sent successfully, add the Get Messages activity after the Send Message activity.
- In the Conversation property, enter the
String
variable you created for the ChannelID property in the Create Channel activity (e.g., newChannel). -
Create and enter a
Message[]
variable for the Messages output property (e.g., slackMessages).- When creating your variable, select UiPath.Slack.Models.Message[] as your variable type.
- To process and see the output of your sent message, after the Get Messages activity, add the activity with the If and activities.
- In the TypeArgument property, select UiPath.Slack.Models.Message.
- In the Values property, enter the
Message[]
variable you created for the Messages output property in the Get Messages activity (e.g., slackMessages). - For the If activity Condition statement, enter the following parameters to narrow down the Get Messages output to the message you sent with the Send Message activity: item.Text.Equals(messageText).
-
In the Then statement box, add the Write Line activity.
- For the Text property, enter item.User+" : "+item.Text to output the message text and your user ID for verification in the output window.
-
In the Else statement box, add another Write Line activity.
- For the Text property, enter item.User+" : "+item.Text to see all the user IDs that "joined" from the Invite to Channel activity.
-
Click Start and verify the results in the output window.
You're done!
When you're ready, try the other Quickstart guides to get more familiar with the different Slack activities.
To learn more about the Slack activities (including example property inputs/outputs), see the Activities page for a complete activity list and links to the activity detail pages.