Inbound Action: reply on closed ticket

  • create a ticketclosed event registry entry on TASK table
  • Include the following code in your 'update incident' , 'update request' inbound actions
if (!current.active) {
        //--activate a ticket is closed event if active is false (closed)
        gs.log(current.number + "; " + email.from + "; " + gs.getUserID() + " - ticket is now closed", "inboundAction:Update Request Item");
        gs.eventQueue("ticketclosed", current, gs.getUserID(), "");

    } else {

       // ... continue with the inbound action code


  • code the notification to fire on TASK table using the event.parm1 as the reply-to value, or code the notification on individual tables if desired (in which case create separate event registry entry per table)

Comments

Popular posts from this blog

GlideRecord setValue

Running transform maps asynchronously

variable advanced reference qualifier example