Multiple Warnings in logs - org.mozilla.javascript.EcmaError: "getMyGroups" is not defined when accessing sys_template in a Scoped appDescriptionWhen querying sys_template from within a Scoped app, the 'org.mozilla.javascript.EcmaError: "getMyGroups" is not defined' warning is thrown.Steps to Reproduce 1. For convenience, remove the condition from OOB Business Rule 'SNC Template Query' on sys_template. Alternatively, impersonate a user that would match the condition, so that the BR runs:/sys_script.do?sys_id=f5ab8f060a0a0bc50013f5ab4b8315c12. From background scripts, run the following script in Global scope:var gr = new GlideRecord('sys_template');gr.query();while(gr.next()){gs.info(gr.sys_id);} 3. Notice how no warnings are thrown.4. Run the same script in any other scope.Expecte Result: No warnings are thrown.Actual Result:The 'org.mozilla.javascript.EcmaError: "getMyGroups" is not defined' warning is thrown.WorkaroundIn the Script of OOB Business Rule 'SNC Template Query' on sys_template (sys_id=f5ab8f060a0a0bc50013f5ab4b8315c1) replace var query = "global=true^ORuser=" + gs.getUserID() + "^ORgroups=javascript:getMyGroups()"; with var query = "global=true^ORuser=" + gs.getUserID() + "^ORgroups=" + gs.getUser().getMyGroups();Related Problem: PRB1490900