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

neha_chauhan
Tera Contributor

Hi Neethu,

Were you able to call the script include from SLA condition builder?

We are facing the same issue.

VaranAwesomenow
Mega Sage

@Harsh Vardhan  ty for sharing this, its working like a charm 🙂

Few minor observations and updates based on latest ServiceNow release.

1. If you are trying this on PDI check the check box sandbox enabled on script include.

2. Client callable is not available anymore on script includes hence we need to select GlideAjax enabled.

VaranAwesomenow_0-1744085522723.png

I have created a scoped application in global scope demonstrating this solution along with a decision table component. Feel free to checkout this blog post explaining the scoped app and the solution.

Implementing complex SLA definitions using decisio... - ServiceNow Community