- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday - last edited Monday
Hi everyone,
I'm working on a Flow Designer script in ServiceNow where I build an encoded query to filter records. One of the conditions I need is to exclude any records on the sys_email table where the recipients field contains @hotmail
I’ve tried the following variations but none of these seem to work:
- recipientsNOTLIKE@hotmail
- recipientsNOT LIKE@hotmail
- recipientsNOTLIKEhotmail
- recipientsDOESNOTCONTAIN@hotmail
- recipientsDOES NOT CONTAIN@hotmail
If I remove that condition, flow works correctly. Any idea what's happening?
Here is the full script:
var gdt = new GlideDateTime();
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @Ankur Bawiskar that didn't work either, for some reason when adding that condition, the look up always returns 0 results. I have now found a workaround to filter those records out by adding a step after that, not ideal but did the job. Thanks all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
@Pau Besalu have you tried it with all the other conditions I shared above? I am getting 0 results as soon as I add this condition 'recipientsNOT LIKE@hotmail'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
No, I removed the 'u_accontISEMPTY' condition because it is a custom field and I also removed this conditions because in my instance I don't have a table with this internal name:
'target_tableSTARTSWITHsn_customerservice',
'target_tableENDSWITHcase',
You could also create the encodedQuery going to sys_email.list and create the filter and run and then with right click on the filter you can "Copy query".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
@Pau Besalu It worked as you have not included other conditions. There is an issue when putting all conditions together apparently.