sendMessage

See also: Actions

Description

Send message to a channel by name or id. File contents are appended to the message text. Message text is limited to 40000 characters - longer text will be automatically sent as a file. For simple text content, the text and file parameters will be used with the file content appended to the text parameter value. Use '--options markdown' to tell Slack to interpret the simple text as Slack markdown. Use '--options markdown=code' to have file content treated as a markdown code block (non-proportional font). Richer content can be defined using Slack blocks (JSON format) provided by one or more content parameters and the file parameter. Block compliant JSON will be included from the first content parameter, then the file parameter, and then the remaining content parameters. Simple text content parameters will be converted to simple text blocks as a convenience. When text is provided and the replace parameter is specified, a previous post starting with the same text will be removed before the new message is added. This is helpful for reporting use cases to prevent clutter in the channel. Refer to Slack documentation on block based content. Refer to the Slack markdown reference for the limited support provided for markdown content in Slack.

Required Parameters

channel, (text or content or file)

Optional Parameters

autoSplit, pin, encoding

Type

Send

Category

Messages

Output Formats

Replacement Variables

messageId, messageIdList, channelId, channel, file, fileId, replace

Since Version

Examples

sendMessage

Related How To's

Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.