51黑料不打烊

Slack modules

In an 51黑料不打烊 Workfront Fusion scenario, you can automate workflows that use Slack, as well as connect it to multiple third-party applications and services.

For instructions on creating a scenario, see the articles under Create scenarios: article index.

For information about modules, see the articles under Modules: article index.

Access requirements

Expand to view access requirements for the functionality in this article.

You must have the following access to use the functionality in this article:

table 0-row-2 1-row-2 2-row-2 3-row-2 layout-auto html-authored no-header
51黑料不打烊 Workfront package Any
51黑料不打烊 Workfront license

New: Standard

Or

Current: Work or higher

51黑料不打烊 Workfront Fusion license**

Current: No Workfront Fusion license requirement

Or

Legacy: Workfront Fusion for Work Automation and Integration

Product

New:

  • Select or Prime Workfront package: Your organization must purchase 51黑料不打烊 Workfront Fusion.
  • Ultimate Workfront package: Workfront Fusion is included.

Or

Current: Your organization must purchase 51黑料不打烊 Workfront Fusion.

For more detail about the information in this table, see Access requirements in documentation.

For information on 51黑料不打烊 Workfront Fusion licenses, see 51黑料不打烊 Workfront Fusion licenses.

Prerequisites

To use Slack modules, you must have a Slack account.

Slack API information

The Slack connector uses the following:

Base URL
{{ifempty(parameters.domain, 'https://slack.com/api/')}}
API tag
v4.0.15

Slack modules and their fields

When you configure Slack modules, Workfront Fusion displays the fields listed below. Along with these, additional Slack fields might display, depending on factors such as your access level in the app or service. A bolded title in a module indicates a required field.

If you see the map button above a field or function, you can use it to set variables and functions for that field. For more information, see Map information from one module to another.

Map toggle

Messages

Create a Message

This action module creates a new message.

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
Enter a channel ID or name

Choose how you want to select the channel where you want to create a message.

  • Enter manually

    In the Channel ID or name field, enter or map the Channel ID or name of the channel where you want to post the message.

    Note: The Channel ID can be retrieved using the List Channels module.

  • Select from the list

    Select the type of channel, then select the channel.

Text

Enter the text content of the message you want to create.

Note: For detailed information about text formatting, see in the Slack documentation.

As user
Enable this option to post the message as the user that owns the credentials used by the connection for this module.
Thread message ID (time stamp)
If the new message is a reply, enter the time stamp of the message you want to reply to. Do not enter the time stamp of a message that is already a reply.
Reply broadcast

Select Yes if both of the following apply:

  • The new message is a reply to another message

  • You want the new message to be visible to everyone in the channel

Attachments
For each item that you want to attach to the message, click Add item and fill in the item's details.
Icon emoji
Enter or map the emoji to use as the icon for this message, in the format :icon-name:.
Icon URL
Enter or map the URL of the image to use as the icon for this message.
Link names

Enable this option to allow names and channels to use @username or #channel format.

For more information, see in the Slack documentation.

Parse message text

Enable this option to allow automatic parsing.

For more information, see in the Slack documentation.

Note: If you used Link names or Parse message text options in the original message, you should specify them when running the Update a Message module as well.

Use markdown
Enable this option to allow Slack to use markdown in the text.
Unfurl primarily text-based content

Enable this option to allow unfurling of primarily text-based content.

For more information about unfurling in Slack, see in the Slack documentation.

Unfurl media content

Enable this option to allow unfurling of media content.

For more information about unfurling in Slack, see in the Slack documentation.

User name
Specify the user name used to post the message. If no user name is specified, the name "Bot" is used.

Delete a Message

This action module deletes a specified message.

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
Channel ID

Enter or map the Channel ID.

Note: The Channel ID can be retrieved using the List Channels module.

Message ID

Enter or map the time stamp of the message you want to delete.

Note: The time stamp can be retrieved using another module, such as the Watch Private Channel Messages Module.

As user
Enable this option to delete the message as the user with the credentials used in the connection.

Get a Private Channel Message

This action module retrieves the details of a message from a selected channel.

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
Channel ID

Enter (map) the Channel ID.

Note: The Channel ID can be retrieved using the List Channels module.

Message ID (Time stamp)

Enter or map the message time stamp of the message you want to retrieve information about.

Note: The time stamp can be retrieved using another module, such as the Watch Private Channel Messages module.

Get a Public Channel Message**

This action module returns a message with a given ID from a specified public channel.

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
Channel ID

Enter or map the Channel ID.

Note: The Channel ID can be retrieved using the List Channels module.

Message ID (Time stamp)

Enter or map the message time stamp of the message you want to retrieve information about.

Note: The time stamp can be retrieved using another module, such as the Watch Public Channel Messages module.

Update a Message

This action module allows you to edit an existing message.

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
Channel ID

Enter or map the ID of the channel that contains the message you want to update.

Note: The Channel ID can be retrieved using the List Channels module.

Message ID (Time stamp)

Enter or map the message time stamp of the message you want to retrieve information about.

Note: The time stamp can be retrieved using another module, such as the Watch Public Channel Messages module.

Text

Enter the new text content of the message you want to update.

For more information, see in the Slack documentation.

As user
Enable this option to update the message as the user that owns the credentials used by the connection for this module.
Attachments
For each item that you want to attach to the message, click Add item and fill in the item's details.
Link names

Enable this option to allow names and channels to use @username or #channel format.

For more information, see in the Slack documentation.

Parse message text

Enable this option to allow automatic parsing.

For more information, see in the Slack documentation.

Note: If you used Link names or Parse message text options in the original message, you should specify them when running the Update a Message module as well.

Watch Private Channel Messages

This trigger module starts the scenario when a new message is added to a private channel (group).

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
Channel
Select the private channel you want to watch for new messages.
Limit
Set the maximum number of messages Workfront Fusion will return during one execution cycle.

Watch Public Channel Messages

This trigger module starts the scenario when a new message is added to a public channel.

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
Channel
Select the public channel you want to watch for new messages.
Limit
Set the maximum number of messages Workfront Fusion will return during one execution cycle.

Conversations

Get a Channel

This action module returns information about a workspace channel.

List Channels

This search module returns a list of all channels in a workspace.

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
Channel ID

Enter or map the ID of the channel that you want to retrieve information about.

Note: The Channel ID can be retrieved using the List Channels module.

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
Exclude archived
Select Yes to exclude archived channels in results.
Type
Select the type(s) of channels you want to retrieve.
Limit
Set the maximum number of channels Workfront Fusion will return during one execution cycle.

List Members in Channel

This search module returns a list of users in the selected channel.

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
Enter a channel ID or name

Choose how you want to select the message you want to .

  • Enter manually

    In the Channel ID or name field, enter or map the Channel ID or of the channel that you want to list the users from.

    Note: The Channel ID can be retrieved using the List Channels module.

  • Select from the list

    Select the type of channel, then select the channel.

Limit
Set the maximum number of members Workfront Fusion will return during one execution cycle.

Other

Make an API Call

This action module lets you make a custom authenticated call to the Slack API. This way, you can create a data flow automation that can鈥檛 be accomplished by the other Slack modules.

Select the HTTP request method you need to configure the API call. For more information, see HTTP request methods.

Connection
For instructions about connecting your Slack account to Workfront Fusion, see Create a connection to 51黑料不打烊 Workfront Fusion - Basic instructions.
URL
Enter a path relative to https://slack.com/api/. Example: /users/identity.
Method
Headers

Add the headers of the request in the form of a standard JSON object.

For example, {"Content-type":"application/json"}

Workfront Fusion adds the authorization headers for you.

Query String

Add the query for the API call in the form of a standard JSON object.

For example: {"name":"something-urgent"}

Body

Add the body content for the API call in the form of a standard JSON object.

Note:

When using conditional statements such as if in your JSON, put the quotation marks outside of the conditional statement.

Base URL
Select the base URL that you want to use for the API call.
Send access token
Select whether you want to send the access token as a header or as a query parameter.

Terminology

The following terminology may be useful when configuring Slack modules:

  • DM: Direct Message
  • IM: Instant Message
  • Private Channel: formerly Group
  • Direct Message: formerly IM
  • Channel: Conversation in the API documentation, channel in the Slack app.
recommendation-more-help
7e1891ad-4d59-4355-88ab-a2e62ed7d1a3