Error "TypeError: Cannot read property 'addOrCondition' of undefined" is thrown when using .addOrCondtion function in client scripts/UI policies


Description

Symptoms

Error "TypeError: Cannot read property 'addOrCondition' of undefined" is thrown when the function .addOrCondtion is used within a client script/UI policy.

Release

All releases

Cause

This is expected behavior as the use of .addOrCondition() function is not supported for GlideRecord client-side scripting.

Resolution

".addOrCondition()' is not documented as one of supported functions for GlideRecord Client Side scripting per this API:


GlideRecord Client Side API