- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 02:07 AM
Hey,
How I can check short description of new incident for a word and execute rule based on it?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 03:44 AM
Hi. This is some basic check. You can use it in busieness rule, where you will get the value of the description field and check in int. Basically, if your description contains this word, indexOf will return the index where the word is starting. If not, it will return -1.
Please mark Correct and Helpful if my answer helps you resolve your issue. Thanks!
Martin Ivanov
Community Rising Star 2022
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 03:44 AM
Hi. This is some basic check. You can use it in busieness rule, where you will get the value of the description field and check in int. Basically, if your description contains this word, indexOf will return the index where the word is starting. If not, it will return -1.
Please mark Correct and Helpful if my answer helps you resolve your issue. Thanks!
Martin Ivanov
Community Rising Star 2022
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 03:46 AM
Hi,
You can use gr.addQuery('short_description', 'CONTAINS', 'word');