Can we call script include from SLA filter condition?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2020 02:42 AM
Hi
Can we call script include from a SLA start condition using below?
javascript:newGetInSys().getinc();
I user the above method to call the script include function but it is not triggering from the SLA start condition.
I have verified the script and it is working in background script.
Thanks,
Neethu
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2020 10:12 PM
I tried using global and didn't work and changed my script include as on demand and that also didn't help.Then i removed all my script and just added a log inside the script to see it is going inside the script but that also didn't work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2020 10:18 PM
are you doing it on personal instance? is it possible if you can share your screen over zoom call or any webex ? i can try to quickly troubleshoot it. if yes drop me an email
hvrdhn88@gmail.com

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2020 02:47 AM
Hi,
Try this one.There should be space between new and script include name.
javascript:new GetInSys().getinc();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2020 03:08 AM
It is not supported to call script include from sla start or stop condition; clearly mentioned in below thread
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
06-08-2020 03:11 AM
you can ankur.
i have tested it
my testing scenario is like below:
i have bunch of record which is coming from my script include and it has not any attached sla. so i just query that and once i updated the form it has attached those sla. if i will try to attach apart from those bunch of record then it wont attach.