I'm writing a rule that sends a text message. The underlying API can of course throw an exception, and I'm looking for a way to use that returned error code, perhaps as system message.

Writing an action that Provides Data is easy enough. But outside of using the data via a Selector, I can't see anyway to get at the data.

What's the best way to use provided data in a text substitution. I can certainly write an action that does _that_, but it seems like there should be an easier way to do this.

Comments

tr’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This seems to work as expected in the current version of Rules. If an action provides a variable, that variable is available as a token which can be used in a text substitution like you want. I tested this with the "Calculate a value" action.