Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2017 11:21 PM
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