Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

what is UTILS in script include?is it different from normal script includes?

uma7
Kilo Guru

i have gone through wiki, but i didnt get any idea. can anyone explain?

9 REPLIES 9

Hi Uma,

There's no real documentation unless the code has been commented. In order to understand how these script includes work you need a level of JS knowledge in order to read the code and interpret what it does.

uma7
Kilo Guru

can i create utils? if yes how can i do?

Can you share what you are after? What do you want to know about "Utils"? What is your expectation of such? What do you want to do?

Please provide some info.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Arpad Penzes
Tera Contributor

If You mean using "Utils" in the end of the Script Include's name, then it's just a naming convention used to distinguish the Script Includes which are storing the majority of the application's server-side logic. In other words this is a way how to highlight important or useful Script Includes.

For more detailed info on this, please try to check: https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/new_to_servicenow/app_store_le...

R_52
Tera Guru

Technically, there is no difference between Normal Script Includes & UTILS Script Includes. 

Generally, for every application there will be one Script Include which stores most of the coding part. It is named as  <App_Name>Utils. If a Script Include becomes long and hard to manage, consider breaking it up into multiple Script Includes based on functionality or logical groupings.

 

Hope this helps!!