NullPointerException when calling a script include in Business rule condition field

layla
Giga Expert

Hi experts,

Actually I'm facing a weird issue; I have a before query business rule which i want to restrict its execution only to some cases.

That said, i have set up a script include in which i build a condition that return true in those specific cases.

Then i have called my script include method in the condition field of the business rule using new ScriptName().methodName(param)

When the business rule runs i got the error:

Have you ever encountred such an error?

Any help will be highly apreciated, thanks in adavnce

6 REPLIES 6

I recommend reaching out to customer support. I'll be interested to hear what they have to say.


HI Service Portal - ServiceNow


Contact Support | ServiceNow


Hi

I'm facing same issue,
any update why exception is thrown while use "gs.action.getGlideURI()"
?