Intercepting notifications

You can write formulas in the Workflow Manager to intercept notifications before they are sent and alter or redirect the messages.

To intercept notifications, use the BeforeNotify event on the Resources.Notification object.

For example, this formula will override the email address to which the message is sent:

message.SetResolvedEmailAddress("user@domain.com")

This formula will override the phone number for a text message:

message.SetResolvedContactNumber("+CC_AC_NPA_NXX")
Note: The message object is not a component, so its methods are not shown in the Methods and Properties tree. However, the available methods are shown in the drop-down list when you begin typing your formula.