1 Reply · Latest reply on Aug 12, 2017 11:31 PM by Pradeep Sharma

    When ''Requested for'' replied then only Checkbox should check-in , other wise should not check-in? how Can we do this ?

      This is my INBOUND ACTION

      script:

       

      gs.include('validators');

       

      if (current.getTableName() == "sc_task") {

      current.comments = "reply from: " + email.origemail + "\n\n" + email.body_text;

       

      if (gs.hasRole("itil")) {

      if (email.body.assign != undefined)

      current.assigned_to = email.body.assign;

      if(email.from==current.email.requested_for)

      {

      current.u_checkbox="true";

      }

       

      if (email.body.priority != undefined && isNumeric(email.body.priority))

      current.priority = email.body.priority;

      }

       

      current.update();

      }