why On demand Script Includes can never be used client-side even if the Client callable option is selected.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2019 08:05 PM
I just want to know the reason behind On demand Script Includes can never be used client-side even if the Client callable option is selected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2019 08:43 PM
Hi Syam,
Any example for this you want to share?
on demand script includes are classless script includes and doesn't include more than 1 function
they are as good as server side script include and hence couldn't be called from client side
Regards
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
06-16-2019 08:55 PM
hey,
On demand script include is classless. and we can't call this from client script.
you can check following thread
thanks,
shrutika surwade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2019 09:08 PM
Hi,
Ondemand script includes can never be called inside a client side scripts. They are purely server side functions and can only be called within the server side objects. They do not have a Class structure defined and hence cannot be accessed from the client side scripts. You could call them directly from server side scripts.
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2019 07:40 AM