Details

This atomic belongs to the Slack atomic group.

Opens or resumes a direct message or multi-person direct message in Slack. This atomic requires one of the following API scopes depending on usage: channels:manage, groups:write, im:write, mpim:write.

Target: Slack integration target or an HTTP Endpoint for "slack.com" with a path of "/api"

Account Key: None if using an integration-provided target, access token if using an HTTP Endpoint target

Steps:
[] Make sure a channel or user was provided:
[]> If not, return an error
[] Build the authorization header and the request payload
[] Request the conversation be created
[] Check if the request was successful:
[]> If not, return an error
[] Extract the request status
[] Check if the request status is successful:
[]> If it is, attempt to extract the conversation information and set the output variables
[]> If it wasn't, return an error

More information about this API: https://api.slack.com/methods/conversations.open

About
Integration
Authorship
Cisco Managed