Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Triggering a modal pop-up After server side field Update in CSM workspace

Nivetha23jay
Tera Contributor

Hello Community,

I am working on a requirement within the CSM Workspace case form and need assistance with orchestrating client-side actions based on a server-side event.

 

The Requirement: When an agent sends an email from the Case record in the Workspace, a pop-up modal dialog should immediately appear. This modal will prompt the agent to select an updated State value for the case.

 

Current Implementation and Problem:

I have successfully implemented the server-side logic:

I created a custom checkbox field on the Case table (e.g., u_email_sent).

A Business Rule (running on update after the email event) checks this box when an outbound email is detected.

 

The challenge I am facing is on the client side:

I attempted to use an onChange Client Script targeting the custom checkbox field (u_email_sent).

The onChange script does not trigger because the field update is performed programmatically by a server-side Business Rule, not by a user interacting with the UI.

Goal:

I need a reliable method to detect that the server-side Business Rule has updated the u_email_sent field (or the case record itself) and subsequently trigger my client-side JavaScript function to display the modal pop-up immediately after that update occurs and the form potentially refreshes/reloads.

 

Which approach works best for this scenario in a CSM Workspace context?

 

Thank you in advance for your guidance!

0 REPLIES 0