The CreatorCon Call for Content is officially open! Get started here.

HR Agent Workspace Business Rule Issue

Karthikalety
Tera Contributor

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

Karthikalety_0-1748013366579.png

 

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

 

9 REPLIES 9

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

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

 

Thanks,
Sandeep Dutta

Please mark the answer correct & Helpful, if i could help you.

Hi Sandeep,

in Data policy also we don't have a condition when state changes to

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

Hi @Karthikalety ,

You can check the solution :

Make Close Notes Mandatory when user click on Clos... - ServiceNow Community

Thanks,
Sandeep Dutta

Please mark the answer correct & Helpful, if i could help you.