- 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 - Search, Download, and Reply
The purpose of this guide is to help you create a working sample with different Slack activities, including Search, Download File, Reply, and Get Replies.
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).
- Searches a Slack channel using key words and returns the results (Search).
- Downloads the first file found during the Search activity (Download File).
- Replies, with an attachment, to the first message found during the Search activity (Reply).
-
Verifies the results of the Reply and Download File activities by outputting the names of the downloaded and attached files (Get Replies and Write Line).
Before you begin:
- Complete the Slack Setup steps.
-
Send a message, with an attachment, to the Slack channel you're connecting to via the Slack Scope activity. Your message should include a unique keyword that you can use in the Search activity's Query property
- When creating this guide, our message was: "Attached is a demo file" and our attached file name was DemoFile.docx .
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 Search activity in the Slack Scope activity.
-
Enter a search Query using the same search modifiers that you use in the Slack application (e.g., "in:#slack-quickstart demo file").
- For more information, see Search in Slack in the Slack help documentation.
-
Create and enter a
SlackFile
variable for the FirstFileFound output property (e.g., firstFileFound).- When creating your variable, select UiPath.Slack.Models.SlackFile as your variable type.
-
Create and enter a
Message
variable for the FirstMessagFound output property (e.g., firstMessageFound).- When creating your variable, select UiPath.Slack.Models.Message as your variable type.
- Add the Download File activity after the Search activity.
- In the File property, enter the
SlackFile
variable you created for the FirstFileFound property in the Search activity (e.g., firstFileFound). -
In the Path property, enter the local path that you want to download the file to. For the purposes of this guide, append a new file name to the end of your local path (e.g., "C:\UiPath_Projects\ReplyFile.docx")
- For more information about the Path property and the naming of files, see Path in the Download File activity details page.
- Add the Reply activity after the Download File activity.
- In the Message property, enter the
Message
variable you created for the FirstMessageFound property in the Search activity (e.g., firstMessageFound). - Enter your reply Text.
-
In the File property, enter the same value you entered in the Download File activity (e.g., "C:\UiPath_Projects\ReplyFile.docx").
-
While it's good practice to create and enter a
Message
variable for the Reply output property, for this example you don't need to because it's not applicable when you verify the activity results.
-
Test your project
- To verify your reply message and attached file were sent successfully, add the Get Replies activity after the Reply activity.
- In the Message property, enter the
Message
variable you created for the FirstMessageFound property in the Search activity (e.g., firstMessageFound). -
Create and enter a
Message[]
variable for the Replies output property (e.g., replies).- When creating your variable, select UiPath.Slack.Models.Message[] as your variable type.
- To process and see the output of your reply, add the and activities after the Get Replies activity.
- In the TypeArgument property, select UiPath.Slack.Models.Message.
- In the Values property, enter the
Message[]
variable you created for the Replies output property in the Get Messages activity (e.g., replies). - For the Text property in the Write Line activity, enter item.Files(0).FileName to output the name of the file that you attached.
- Add another Write Line activity after the For Each activity.
- In the Text property, enter firstFileFound.FileName to output the name of the file that was found during the Search 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.