User changed the incident state to resolved without filling mandatory fields

tulasi8
Tera Contributor

Hi Community,

 

User changed the incident state to resolved without filling mandatory fields. Even i checked it in history when they changed the state to resolved at that time mandatory fields are not filled . How it is possible ?

 

Regards,

Tulasi.

3 REPLIES 3

RaghavSh
Mega Patron

That depends how have you made the fields mandatory.

 

Example: If you have made the fields mandatory using client code (client script /UI policy), in that case user can mark the incident resolved from list view. To stop user from doing such, you need to use data policy. There can be multiple other scenarios. 

 

Check with user how he did the same.


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023
LinkedIn

Ankur Bawiskar
Tera Patron
Tera Patron

@tulasi8 

if they would have done from UI then data policy will block the update as there is already 1 OOTB data policy for incident table for Resolved State

Data policy works on form, list, etc

AnkurBawiskar_0-1762938012905.png

 

If it got updated via background script then data policies can be skipped using setUseEngines(false)

Did someone run background script with that function on GlideRecord?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Me Being Mustaq
Tera Guru

Hi @tulasi8 ,

 

Changing form view submits form.

 

You can write your validation with onsubmit client script so that mandatory fields validation are not skipped.

 

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.

 

 

Thanks & Regards,

Mohammed Mustaq Shaik