Member Junction
    Preparing search index...

    Action that sends messages to Slack via incoming webhooks

    // Simple text message
    await runAction({
    ActionName: 'Slack Webhook',
    Params: [{
    Name: 'WebhookURL',
    Value: 'https://hooks.slack.com/services/YOUR/WEBHOOK/URL'
    }, {
    Name: 'Message',
    Value: 'Hello from MemberJunction!'
    }]
    });

    // Rich message with blocks
    await runAction({
    ActionName: 'Slack Webhook',
    Params: [{
    Name: 'WebhookURL',
    Value: webhookUrl
    }, {
    Name: 'Blocks',
    Value: [
    {
    type: 'header',
    text: {
    type: 'plain_text',
    text: 'New Order Received'
    }
    },
    {
    type: 'section',
    text: {
    type: 'mrkdwn',
    text: `Order *#12345* from *John Doe*\nTotal: $99.99`
    }
    }
    ]
    }]
    });

    // With custom username and icon
    await runAction({
    ActionName: 'Slack Webhook',
    Params: [{
    Name: 'WebhookURL',
    Value: webhookUrl
    }, {
    Name: 'Message',
    Value: 'Deployment completed successfully!'
    }, {
    Name: 'Username',
    Value: 'Deploy Bot'
    }, {
    Name: 'IconEmoji',
    Value: ':rocket:'
    }]
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Sends messages to Slack via webhook

      Parameters

      • params: RunActionParams

        The action parameters containing:

        • WebhookURL: Slack incoming webhook URL (required)
        • Message: Plain text message (required if no Blocks)
        • Blocks: Slack Block Kit blocks array (optional, overrides Message)
        • Username: Override webhook's default username (optional)
        • IconEmoji: Override webhook's default icon (optional, e.g., ':ghost:')
        • IconURL: Override webhook's default icon with URL (optional)
        • Channel: Override webhook's default channel (optional, may be disabled)
        • ThreadTS: Thread timestamp to reply to (optional)
        • Attachments: Legacy attachments array (optional)

      Returns Promise<ActionResultSimple>

      Success confirmation