- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 08:56 AM
Hi,
I have written below script include to fetch category values:
In service portal, the category not fetching correctly. it showing all the values. please let me know the corrections.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 12:00 PM
Hi,
This can be done using contain or startswith, what she need is does not start with.
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 09:00 AM - edited 09-20-2023 09:01 AM
Hi @Deepa12
Can you try updating below line.
return category_array.toString();
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 09:49 AM
sorry, it didnt work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 09:03 AM
Hi,
What do you want to achieve with this?
You can write below query in reference qualifier field-
name=incident^element=category^inactive=false^language=en^valueNOT LIKEGPS^valueNOT LIKEWFM
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 09:48 AM
Hi Saurabh,
Thanks for reply, if i use this query into reference qualifier - name=incident^element=category^inactive=false^language=en^valueNOT LIKEGPS^valueNOT LIKEWFM
it's filtering - all the categories which contains GPS, WFM.
But my requirement is - filter the values starts with GPS,WFM.
so that i tried to create script include to filter out starts with the values GPS.