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.

How to Call Script include in Ui Macro

sasidhar3
Kilo Contributor

Hi ,

i need to call script include in Ui macro , i had called Ui page from Ui macro now my requirement is to call the Script include.how can i achieve this

Could any one help me regarding this

Thanks in advance

5 REPLIES 5

Khozema Attar1
Tera Guru

Hi ,



find the following thread : how to call script include from ui macro?


Chandu Telu
Tera Guru

Hi SASi,



just add scipt tag in your





  1. <script>  
  2. function showRelatedList(reference) {  
  3.   var ga = new GlideAjax('HelloWorld');  
  4. ga.addParam('sysparm_name','helloWorld');  
  5. ga.addParam('sysparm_user_name',"Bob");  
  6. ga.getXML(HelloWorldParse);  
  7. }  
  8. </script>

Thanks for your Replies,


this is the UI macro



find_real_file.png


when i click on modify it must call the script include


find_real_file.png


i need to get the values in Vm size values in dropdown