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
06-02-2025 03:40 PM
Did yuo try with data policy on HR Case table.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 09:34 PM
Hi @Karthikalety ,
You should be using Cleint Script. BR is used when you want to query something from Server Side, but your requirement is is to deal with Front end or cleint side.
Also, Share your actual requirement. As the Business Rule is checking whether the field is empty or not. As client side you can do a onChange , where you can show an error when the state changes to closed complete, theclosed notes mandatory.
Field : State
Sandeep Dutta
Please mark the answer correct & Helpful, if i could help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 10:49 PM
Hi Sandeep,
in Data policy also we don't have a condition when state changes to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 10:51 PM
Hi @SANDEEP DUTTA The original requirement is when users clicks on the Close complete button in the workspace which is declarative action. we need to make the close notes mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 11:32 PM
Hi @Karthikalety ,
You can check the solution :
Make Close Notes Mandatory when user click on Clos... - ServiceNow Community
Sandeep Dutta
Please mark the answer correct & Helpful, if i could help you.