Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var gr = new GlideRecord("sys_ui_action");
- gr.get("a23792504f4853001b1ca3b11310c7ad");
- if(GlideEvaluator.evaluateString(gr.getValue("condition"))){
- current.state = 11;
- current.assignment_group = gs.getProperty("misconduct.investigator_group");
- current.assigned_to = current.u_investigator;
- current.update();
- action.setRedirectURL(current);
- }
- else{
- gs.addErrorMessage(gs.getProperty("misconduct.ui_condition_error"));
- current.update();
- action.setRedirectURL(current);
- }
Add Comment
Please, Sign In to add comment