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.

Trying to set Case "resolution notes" field mandatory through sys_email_draft(New Email draft) page

dfghj1
Tera Contributor

I have created a pop up modal when click on Send email button on compose email button(in CSM/FSM workspace).

1.) When open a case(sn_customerservice_case), and click on "compose email" button. Then on click on "send email" button on "New Email Draft" page, created a modal as shown below.

dfghj1_0-1704094326990.png

2.) On click on "Resolve case" button on modal. I need to apply validation on few fields like Resolution notes, Resolution code etc. Make them mandatory if it's not field by an agent.

3.) So I have created a client script in ui builder to apply these validation but it's not working. I have did the glide query on case table and then used "Data resource id" of that record.

dfghj1_2-1704094776755.png

 

dfghj1_3-1704094863573.png

 Can someone please help here to find what I am doing wrong in this. Why it's not setting the field as mandatory on case table.

 

0 REPLIES 0