We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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

Subhojit Das
Kilo Guru

Hi Ram,

There are 3 types of Script Include

1. On Demand/ Classless Script Include[You have to remove all the code which populates after inserting the name of Script Include and define a function]

2. Client Callable Script Include[Mark client callable checkbox as true]

3. Define a new class Script Include[define the function under the class created after creation of script include name]

https://snprotips.com/blog/2016/2/6/gliderecord-client-side-vs-server-side

https://docs.servicenow.com/bundle/kingston-application-development/page/script/server-scripting/con...

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

Please mark the content as Correct and Helpful if you find it useful.

Regards,

Subhojit Das