Trigger Help for Rest Response


#1

Matrix Version: 5.3.4.0

Hi Guys,

Hope someone will be able to help me as I will need to build a trigger that will fire out for events such as webservice is down or an authorisation issue has been encountered.

Currently I am testing an authorisation failure but it seems that the trigger is not working for me.

Events:
REST Response Received

Asset:
Form Contents

Keyword Value
(I have tested this)
If the replacement value of keyword %globals_session_rresponse% is a RegEx Match with 401 - Unauthorized

(And this)
If the replacement value of keyword %globals_session_rresponse% is a RegEx Match with ^(.?(401 - Unauthorized)[^$])$

Action:
Send Email Trigger Action (I already setup the email for this)

Thank you.


#2

Update:

I make the 401 issue work but I will test out the event if webservice is down if there will be no conflicts. Hopefully not.