Action that sends messages to Slack via incoming webhooks
// Simple text messageawait 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 blocksawait 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 iconawait runAction({ ActionName: 'Slack Webhook', Params: [{ Name: 'WebhookURL', Value: webhookUrl }, { Name: 'Message', Value: 'Deployment completed successfully!' }, { Name: 'Username', Value: 'Deploy Bot' }, { Name: 'IconEmoji', Value: ':rocket:' }]}); Copy
// Simple text messageawait 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 blocksawait 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 iconawait runAction({ ActionName: 'Slack Webhook', Params: [{ Name: 'WebhookURL', Value: webhookUrl }, { Name: 'Message', Value: 'Deployment completed successfully!' }, { Name: 'Username', Value: 'Deploy Bot' }, { Name: 'IconEmoji', Value: ':rocket:' }]});
Protected
Sends messages to Slack via webhook
The action parameters containing:
Success confirmation
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
Action that sends messages to Slack via incoming webhooks
Example