Filter condition - Changes to

matt_a
Kilo Guru

Really simple answer i expect!

We have instances where a users email domain will change. 

I want a business rule to fire when the email address changes to a specific domain and when it fires, it sets certain fields.

Using the filter conditions with a wild card

wont work?

find_real_file.png

 

Therefore would someone be able to assist in how I would write this as a query? Im not sure how a changes to "like" would work!

Thanks

1 ACCEPTED SOLUTION

David Stutter
Tera Guru

Just split it into two conditions:

 

Email changes AND

Email ends with XX

---

 

Or

Email matches pattern, matches regex, it depents how individual your email domains are.

View solution in original post

6 REPLIES 6

Waleska
Kilo Guru

There should be an option that says "Changes" that just tracks when a field changes to anything.

Waleska
Kilo Guru

You would probably have to use an advanced Business Rule and in the Advanced Tab under condition you can use something like current.email.indexOf('yourdomainhere')>-1;  

 

I'm not sure what actions you want to occur when the condition is met so if you need assistance with that, let me know.

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

you can try to set your Filter condition:

Email changes to %gmail.com

If I have answered your question, please mark my response as correct and/or helpful so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

Saurav Maiti
Mega Expert

Hi,

You may try to set your Filter condition:

Email changes to %co.uk

If my answer helped you in any way, please then mark it as helpful/Correct