Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Script Include in Condition Builder for SLA defintion

shahiedsali
Tera Expert

Hello Community,

I am trying to use a Script Include in a SLA Definition's condition builder for the sc_task table. It was working alright but as soon as I made the change to include 'current' in the function, it seems like it is not calling the Script Include at all. The use-case requires to match the current sc_task's record to a record in another table 😭. Any help is greatly appreciated.

 

Working: javascript: new global.exampleCheckUtils().getMatchingShortDescription()

Not working: javascript: new global.exampleCheckUtils().getMatchingShortDescription(current)

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @shahiedsali 

 

Can you confirm whether

 

Glide AJAX enabled  box is checked in your Script include exampleCheckUtils  //if you are using Australia
TanushreeMaiti_1-1789910082593.png

 

OR
Client callable enabled  box is checked in your Script include exampleCheckUtils  //if you are using any lower servicenow version other than Australia
TanushreeMaiti_0-1789910016694.png

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti