Make Connection Configurable in the SendMessageAction

The SendMessageAction is useful when you need to automate sending out messages. 

In a setup where a workspace has more than one connection, it may be necessary to tell the recipe engine which connection to use. Otherwise, FSMS will use the routing rules to send out the message.

Configuring this can be done in the following steps\

 

1. Add a DropDown UserData as follows. Set the userData value as

${Connection.getAll().collect { it.name + " | " + it.id}.join("\n")}

Screenshot_2021-06-24_at_17.56.42.png

2. The connections will be available for selecting when editing a Activity as follows

Screenshot_2021-06-24_at_15.04.02.png

3. In the SendMessageAction reference the userData as follows

Screenshot_2021-06-24_at_18.09.37.png

${userData["connection"]}

4. If you want FSMS to use the routing rules, set the connection to routing.rules

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.