Duplicate incident creation restriction in servicenow

nitin51
Tera Contributor

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.

11 REPLIES 11

incGr.addQuery('description','test',current.description);

 

am using 'test' but still the ticket is getting created

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) 

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.

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.

Can only use for short description but in scripted rest api