champ
Kilo Contributor

shlokesrivastava@outlook.com



I have verification list on the change form, which contains user to be added on the related list.



I wrote the below business rule but does not work out.





Script: (function executeRule(current, previous /*null when async*/) {     // Add your code here     var usr = new GlideRecord("sys_user");     usr.addEncodedQuery("parent=" + current.sys_id);     usr.query();     if(!usr.next())     {     gs.addInfoMessage("Please link a Problem Record at the bottom Verification Tab");     action.setRedirectURL(current);     current.setAbortAction(true);     } })(current, previous) It throws error