How Many types of Script Includes()?

ram2497
Tera Contributor

How Many types of Script Includes()?

Please provide the correct answer: Two types(client callable and server-side)  or Three types.

Which one correct?

Thanks

Ram

 

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron

Hi Ram,

 

There are only 2. Client Callable & Server side but these are not types they are options script include can be called.

For types there are 3. Class, Classless, onDemand. Refer link for a check. 

View solution in original post

5 REPLIES 5

vkachineni
Mega Sage

I would say 2 but changing my opinion after Jaspal's answer

3 types

 

 

Jaspal Singh
Mega Patron

Hi Ram,

 

There are only 2. Client Callable & Server side but these are not types they are options script include can be called.

For types there are 3. Class, Classless, onDemand. Refer link for a check. 

Not applicable

onDemand and Classless are same

Pooja Mallikarj
Kilo Sage

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

For more explanation you can refer the below link.

https://developer.servicenow.com/dev.do#!/learn/learning-plans/orlando/servicenow_application_develo...

 

Thanks,

Pooja M