Can we call script include from SLA filter condition?

neethu4
Giga Expert

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

 

21 REPLIES 21

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.

 

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

Dhananjay Pawar
Kilo Sage

Hi,

Try this one.There should be space between new and script include name.

javascript:new GetInSys().getinc();

Ankur Bawiskar
Tera Patron
Tera Patron

@neethu 

It is not supported to call script include from sla start or stop condition; clearly mentioned in below thread

https://community.servicenow.com/community?id=community_question&sys_id=3bea83addb5cdbc01dcaf3231f96...

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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.