SlackMessage

Content Type: Module
Categories: Connectors

Overview

Bi-directional communication with Slack. Send messages from your app to Slack channels and/or respond to slash command. Some use cases: send a message when the app starts or stops, when an error occurred and devsops has to be notified, to update the process manager on tasks it performed, on request return the amount of open orders.

Documentation

SlackMessage

This module has a two functions: send messages from your Mendix app to Slack channels and respond to commands sent from Slack to your app.

This allows your app to post messages in Slack channels, for example that it started or is going to shut down. And in the opposite direction you can use Slack to send commands to your app, for example to get a status update or to start a process.

Features

Its features are

  • Incoming Webhook URLs and other sensitive data are stored encrypted
  • create messages with markdown markup or just plain text
  • send messages to multiple channels in multiple workspaces
  • optionally send messages in the background not delaying your primary process
  • no Java libraries that require maintenance, just native Mendix
  • Dutch and English languages are supported in the UI

Installation

Download the module from the AppStore and add it to your project.

Add microflow ASu_SlackMessage to your app's AfterStartup microflow.

The module depends on AppStore module CommunityCommons.

Security

The module offers these two roles:

  • Administrator - manage Webhooks
  • User - the minimum needed for regular users

Send messages to Slack

Instructions are available here.

Receive commands from Slack

Instructions are available here.

Test creating and sending messages

The GitHub repo contains a Mendix model with functions that can be used to test the module before adding it to your project. Snippet SN_Webhook has test functions too.

Feedback

Please leave your feedback in the GitHub repo.

Releases

Version: 2.2.0
Framework Version: 8.12.7
Release Notes: Allows use of module CommunityCommons module version 9
Version: 2.1.0
Framework Version: 8.12.7
Release Notes: Upgraded to Mx 8.12.7 to support Mx 9
Version: 2.0.0
Framework Version: 7.23.19
Release Notes: Support for Slack slash commands to allow sending commands to your Mendix app via Slack.
Version: 1.1.0
Framework Version: 7.23.8
Release Notes: Encryption of Incoming Webhook URLs Asynchronous sending of messages to Slack Use alternative method to store and use URLs Ability to enable or disable the module Attention: Upgrading from the previous version will cause some errors in your model. And in snippet SN_Webhook is a migration button to encrypt all URLs you already have stored.
Version: 1.0.0
Framework Version: 7.23.8
Release Notes: Initial release of this module, see readme for details.