Text filter of notification on screen and statusbar

Post your questions and help other users.

Moderator: Martin

Post Reply
whenevere
Posts: 8
Joined: 22 Nov 2016 22:05

Text filter of notification on screen and statusbar

Post by whenevere » 12 Dec 2016 15:35

For the "Notification on Screen Displayed" and "Notification on Statusbar Displayed/Removed/Selected" triggers, is the "Text" filter CaSe Sensitive ??
Does the "Text" filter support glob pattern characters like * and ? ?
Does the text filter support many keywords separated by comma ?
Does the text filter support VARIABLES ?

Example:
*Urgent*,*urgent*,{variable1},emergenc*

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Text filter of notification on screen and statusbar

Post by Martin » 13 Dec 2016 20:12

Hi,

The text filter is not case sensitive. * and ? are supported when the type is set to 'matches glob'. Comma separated list of values is not supported.
Variables are not supported. Text fields that support variables will usually highlight the variable in a blue color.

You could also leave the text filter empty to execute the flow on all notifications and then use a condition expression to check if it contains some keywords:
contains(toLowerCase(notification_text), "urgent") || contains(toLowerCase(notification_text), "emergenc") || contains(notification_text, variable1);

Regards,
Martin

User avatar
javanesse
Posts: 9
Joined: 01 Mar 2016 02:13
Location: Indonesia
Contact:

Re: Text filter of notification on screen and statusbar

Post by javanesse » 24 Apr 2018 06:26

well, hope the next update will give multiple texts filter, so we can save lot resources.

Post Reply