User changed the incident state to resolved without filling mandatory fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
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
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
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
