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

Ankur Bawiskar
Tera Patron
Tera Patron

@Karthikalety 

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.

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Karthikalety 

 

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]

****************************************************************************************************************

Karthikalety
Tera Contributor

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

Hi @Karthikalety 

 

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]

****************************************************************************************************************