daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Feb 14th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var gr = new GlideRecord("sys_ui_action");
  2. gr.get("a23792504f4853001b1ca3b11310c7ad");
  3. if(GlideEvaluator.evaluateString(gr.getValue("condition"))){   
  4.   current.state = 11;  
  5.   current.assignment_group = gs.getProperty("misconduct.investigator_group");
  6.   current.assigned_to = current.u_investigator;
  7.   current.update();
  8.   action.setRedirectURL(current);
  9. }
  10. else{
  11.   gs.addErrorMessage(gs.getProperty("misconduct.ui_condition_error"));
  12.   current.update();
  13.   action.setRedirectURL(current);
  14. }
RAW Paste Data
Top