Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=sendIntegrationMessage+-+434930171
widthauto

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,sheading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

sendIntegrationMessage(name, message or [SlackMessage])

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Sends a message to integration such as Slack.

Sends a message to integration such as Slack.

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

name

String

Yes

The name of the integration. Make sure that you have an integration configuration added for the specified name.

message

String

Yes

The message to be sent

SlackMessage

JSlackMessage

Yes

Slack message to be sent

Return Type

None

Example

Code Block
languagejs
JSlackAttachment att1;
att1.pretext = "Optional text that appears above the attachment block";
att1.title = "This is an example of attachment ...";
att1.text = "*Bold* ~strike~ text";
att1.color = "#4286f4";

JSlackAttachment att2;
att2.title = "This is an example of attachment with code.";
att2.text = "'var i = 0; doSomethingWith(i);'";
att2.color = "#f45641";

JSlackMessage message;
message.channel = "C94S1U658";
message.text = "Test slack message with attachment...";
message.attachments = {att1, att2};

return sendIntegrationMessage("SLACK", message);

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "

...

slack_routine" and space = currentSpace ( )
labelsarray_routines

We've encountered an issue exporting this macro. Please try exporting this page again later.