'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

I've removed the 'Read Only' part. When I save the value, it comes up with 'Function getGlideObject is not allowed in scope x_lbg_mr'

 

Can you share a screenshot with all tabs on the dictionary of the field?

 


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

matthew_hughes_0-1696851606032.png

 

Danish Bhairag2
Tera Sage
Tera Sage

Hi @matthew_hughes ,

 

Assuming the business rule is created on the same table where that field is present. In that case  please update the value like below:

 

current.u_shift_opened_in = 'shift_1';// please use proper value with which u want to update the field with

 

Mark my answer helpful & accepted if it helps you resolve your issue.

 

Thanks,

Danish

I've tried that, but I'm still getting the error message of:

Function getGlideObject is not allowed in scope x_lbg_mr