Slack
Credentials
Below are the component credentials configuration fields:
- OAuth Token
-
This is a required string value. The OAuth Tokens for Your Workspace. This token is automatically generated when you installed the app on your team.
To successfully verify credentials you need to provide access to channels:read
scopes.
Triggers
This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.
Actions
Lookup object (at most one)
Lookup a single object by a selected field that uniquely identifies it.
Configuration fields
- Object Type
-
A required string value. Object-type to lookup on. For example,
User
. - Lookup Criteria
-
A required object value. A list of object parameters that can uniquely identify the object in the database.
- Allow criteria to be omitted
-
An optional boolean value. If selected field Lookup Criteria Value becomes optional.
- Allow zero results
-
An optional boolean value. When selected, if the object is not found, an empty object will be returned instead of throwing error.
To use this action on User Object Type you must provide access to users:read.email
andusers:read
scopes. The User ID can be found in their profile:
Make raw request
Executes a custom request.
Post message
Implements Slack’s post message API endpoint.
Input metadata
- Channel ID
-
A required string value. The ID(s) of the channel(s) where the user can post message. All available channels can be retrieved with the conversation.list API method. Example
C03ND7QEN5T
. - attachmentsBlocksText
-
A required object value. Object with properties attachments, blocks and text. One of these properties is required to describe the content of the message. If attachments or blocks are included, text will be used as fallback text for notifications only. Read Slack’s documentation at https://api.slack.com/methods/chat.postMessage#args.
- optionalArguments
-
An optional object value. All possible arguments. Read Slack’s documentation at https://api.slack.com/methods/chat.postMessage#args.