'Function getGlideObject is not allowed' error message on Business Rule

matthew_hughes
Kilo Sage

I'm wanting to the update the following field on a request based on the time a request is created:

 

matthew_hughes_0-1696841019825.png

I'm wanting to update the value via the following Business Rule:

matthew_hughes_1-1696841078479.png

 

matthew_hughes_2-1696841147781.png

 

However, when I create a new request and save it, I get the following error message and the field is not populating:

matthew_hughes_3-1696841190060.png

 

I was just wondering if somebody could explain why the error message is occurring and what I need to do prevent it from re-occurring.

 

I've created the Business Rule and new field under a different scope

10 REPLIES 10

Vishal Birajdar
Giga Sage

Hi @matthew_hughes 

 

Can you use different condition in "When to run" section just for testing and check if error message is there ??

I doubt it's because of condition.

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates