Product Selector

Fusion 5.12
    Fusion 5.12

    Send Slack Message Index Stage

    This stage sends a Slack message from Fusion, for alerting, reporting, and more, using Fusion’s Messaging Services.

    Enabling Slack Messaging

    Before you can use the Slack pipeline stage, you must enable Slack messaging in Fusion:

    1. Click Applications > System > Messaging Services.

    2. Select Slack Message Service from the drop-down menu.

    3. Enter the following information:

      • Slack auth token

      • Message template

        The default is <subject> : <body>, which are configured with messageSubjectTemplate and messageBodyTemplate below. See Messaging Services Templates for details on the template language.

      • Optionally, you can configure a proxy or the error reporting channel name.

    4. Click Save message service.

    Configuration

    When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.

    Send a Slack Message using the Fusion Messaging Service. This can be used for things like alerting and more.

    skip - boolean

    Set to true to skip this stage.

    Default: false

    label - string

    A unique label for this stage.

    <= 255 characters

    condition - string

    Define a conditional script that must result in true or false. This can be used to determine if the stage should process or not.

    storeInContext - boolean

    Put the generated Message later in the pipeline.

    Default: false

    responseKey - string

    The name of the key to store the MessageResponse under in the Pipeline Context.

    Default: messageResponse

    errorKey - string

    The name of the key to store a boolean if sending a message failed. If set, you can check the MessageResponse errorCode and other attributes for the reason.

    Default: messageResponseFailure

    to - array[string]required

    Who to send the message to. May be a string template similar to the body and subject.

    from - stringrequired

    Who the message is from. May be a string template similar to the body and subject.

    messageBodyTemplate - stringrequired

    A Message Template that is used to create the message body to send. See https://github.com/antlr/stringtemplate4/blob/master/doc/index.md for details on the template language.

    Default: Processing Document <doc.id>

    messageSubjectTemplate - stringrequired

    A Message Template that is used to create the message subject to send. See https://github.com/antlr/stringtemplate4/blob/master/doc/index.md for details on the template language.

    Default: Hello