- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2019 10:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2019 10:29 PM
Hi Chenna,
As such both are unique in their own ways;
I will list down their uses and that should help you differentiate
Script Action - server side
1) Used mostly to perform some transactions or updates asynchronously; such as close child incidents when parent incident is closed
2) requires event to trigger
3) when event is processed script action triggers
Script Include - server side
1) holds reusable code which can be called from multiple server side scripts; such as business rule, workflow, script action or another script include itself
2) used by client scripts to perform GlideAjax calls
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2019 10:29 PM
Hi Chenna,
As such both are unique in their own ways;
I will list down their uses and that should help you differentiate
Script Action - server side
1) Used mostly to perform some transactions or updates asynchronously; such as close child incidents when parent incident is closed
2) requires event to trigger
3) when event is processed script action triggers
Script Include - server side
1) holds reusable code which can be called from multiple server side scripts; such as business rule, workflow, script action or another script include itself
2) used by client scripts to perform GlideAjax calls
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2019 10:35 PM