Duplicate incident creation restriction in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2022 02:19 AM
Hi team, how to stop duplicate incident creation using fields. if suppose, created by, opened by, few words in short description and description matches. we need to restrict the duplicate incident creation. please help me on this.
- Labels:
-
Facilities Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2022 05:02 AM
incGr.addQuery('description','test',current.description);
am using 'test' but still the ticket is getting created

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2022 09:22 PM
NO 'LIKE' is an constant operator.
your query should be like this
incGr.addQuery('description','LIKE',current.description);
this will check . if any of the existing incidents contains same description as current records description(current.description)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2022 11:23 PM
ok, thanks for that but what I want is only if one sentence in description field is matched then it should not create duplicate
EX: for one ticket this is description
Description -- " LIKE is an operator which will check if the field contains any value the same as the one we are giving"
again if another ticket description is like
"field contains any value" then new ticket should not create.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2022 02:19 AM
Hi Thameem, can you please help me on this
ok, thanks for that but what I want is only if one sentence in description field is matched then it should not create duplicate
EX: for one ticket this is description
Description -- " LIKE is an operator which will check if the field contains any value the same as the one we are giving"
again if another ticket description is like
"field contains any value" then new ticket should not create.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2023 02:41 PM
Can only use for short description but in scripted rest api