Script Include
Script Include
Include??
@ Salma
Shaik
@ Salma
Shaik
Why
Script Include
Modularity
Reusability
Centralization
Testability
@ Salma
Shaik
Script Include
can be called
from
@ Salma
Shaik
1. Business Rules
2. Scheduled job
3. Script Action
4. Reference Qualifier
5. UI Action
6. UI Page
7. Workflow script
8. Client Script
9. Other Script include
Types
OnDemand/
Classless
Extend an
existing class
Define new
class
@ Salma
Shaik
On Demand
Function OnDemand()
{
Syntax //writing the code
}
@ Salma
Shaik
Define a
new class
@ Salma
Shaik
Extend a script
include
Extending of class is basically inheriting
of class, means accessing the fields and
methods of another class.
Can be called from both client and
server side.
We can extend script include class in
ServiceNow as classes are extensible.
@ Salma
Shaik
Best Practices
Keep it
modular
Performance
Considerations
@ Salma
Shaik
Next steps
Consider it a training
exercise! Please let me know
in the comments on how it
goes.
@ Salma
Shaik
If you like this
content and want to
learn more
ServiceNow topics.
@ Salma
Shaik