Prevent user from submitting new ticket if there is still an open ticket

SukritiJ4091035
Tera Contributor

How can I prevent a user from submitting a new HR Case via record producer , if there is still an open HR Case for  for this user? So only 1 open HR Case per user per HR Service can be possible. So I need it for all the services whenever user clicks submit an alert should appear saying you already have a case opened for this service.

Thanks in advance!

6 REPLIES 6

Bhavya11
Kilo Patron

Hi @SukritiJ4091035 ,

 

Please refer the this thread.

 

If this helped please like and mark it as an accepted solution. 

 

Thanks,

BK

Hi Bhavya,

Thanks for the reply. That solution works for one single HR service but I am looking for solution where it works for all the HR services. 

 

Thanks

Sukriti

Ankur Bawiskar
Tera Patron
Tera Patron

@SukritiJ4091035 

you can use before insert BR on your record producer and validate this

what script did you write?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@SukritiJ4091035 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader