script include from ui policy

tushar_ghadage
Tera Contributor

Hi Everyone, 

Can we call script include from UI Policy ...? and if yes how and does calling script include from Ui policy make no sence ..?

 

thanks 

 

6 REPLIES 6

Dr Atul G- LNG
Tera Patron

Hi @tushar_ghadage 

 

You should be able to call your script include in the script section of the UI Policy, just check the advanced box. UI Policy script section is like client script.

https://docs.servicenow.com/bundle/orlando-application-development/page/script/ajax/topic/p_AJAX.htm...

 

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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

Okay and is the syntax the same as we use for client script ..? 

 

you can check in above link.

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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

I did check but nothing mentioned specifically regarding the Ui policy, but no problem got the point.