What are the 3 types of script include and their uses in simple language.

Shilpi Sharma2
Tera Contributor

HI All,

I Know there are 3 types of script include but can you anybody explain them in simple terms and their usage/purpose.  Please help.

 

 

2 REPLIES 2

Ragini Kukade
Kilo Guru

Hi,

Script Includes are reusable server-side script logic that define a function or class. Script Includes execute their script logic only when explicitly called by other scripts. There are different types of Script Includes:

  • On demand/classless
  • Extend an existing class
  • Define a new class

 

A Script Include that defines a single function is known as an on demand, or classless, Script Include. The function is callable from other server-side scripts. On demand Script Includes can never be used client-side even if the Client callable option is selected.On demand Script Includes are typically used when script logic needs to be reused. Examples include standardizing date formats, enabling/disabling logging, and validating email addresses.

Hope the following link will help you

https://developer.servicenow.com/app.do#!/lp/new_to_servicenow/app_store_learnv2_scripting_jakarta_s...

 

Mark it as correct/helpful,if it helps.

Regards,

Ragini

 

Community Alums
Not applicable

2nd and 3rd one plss....