How to Make the Embedded list mandatory

Arun91
Tera Contributor

Hi Team,

We have embedded field in Change Task table. We are trying to make the embedded field mandatory when the change task is in open state. Kindly help me how to proceed it?

 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Arun91 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0724566

 

*************************************************************************************************************
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]

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

Community Alums
Not applicable

Hi @Arun91 

We can achieve this requirement with the help of "UI Policy"

create UI policy on change_task table, fill the required fields and condition state = open then save the form, lastly add UI policy action by clicking NEW and select "embedded field" with mandetory fields = true;

Nileishpol_0-1739874941850.png

We will not be able to see the Embedded field in the ui policy action

Anurag Tripathi
Mega Patron
Mega Patron

Assuming what you need is to ensure there is a row in Embedded list before the task is closed.

IF that is the case then there is no direct or oob way if doing so, What you can do is create a BR that will run on the change task table(before its closed or whatever your condition is) and query the table where the embedded list is to ensure there is at least 1 entry for the corresponding change task. And base don that allow the Change Task to close , or not.

 

-Anurag