HR Agent Workspace Business Rule Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 08:17 AM - edited 05-26-2025 01:50 AM
Hi Community, I have a question and would appreciate your help.
I’ve created a Business Rule on "HR case" table that checks if the Close Notes field is empty when the state changes to Closed Complete. If it’s empty, the rule displays an error message and aborts the update.
Here is the business rule: before update
This works as expected in the backend. However, in Workspace, the behavior is one step behind. For example, if Close Notes is empty and I try to save, it correctly shows the error. Then, when I fill in Close Notes and submit, it still shows the error message. Only when I save again without making any changes does it successfully move to Closed Complete.
Has anyone else encountered this issue in Workspace? Any suggestions on how to resolve it?
@Ankur Bawiskar @Dr Atul G- LNG @J Siva can any one help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 06:31 AM
why are you not using any UI policy or client script to make close notes mandatory rather than business rule?
That should work fine in both native + workspace
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 12:33 PM
Not 100% sure, but agree with Ankur, better to go UI policy easy and low code.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 06:04 AM
Hi @Dr Atul G- LNG and @Ankur Bawiskar
The main problem with UI policy is we don't have a condition state "Changes to". so I tried BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 09:12 AM
I am not good in code. @SANDEEP DUTTA @AshishKM any inputs
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************