Previous Topic: String[] HDCreateAnnouncement RoutineNext Topic: int HDUpdateTicket Routine


int HDCloseTicket Routine

If you configure the option to close a ticket automatically when its associated alert clears, then this routine closes the help desk ticket.

If the ticket is successfully closed, the routine returns a value of zero. Otherwise, the routine returns a non-zero value. If the routine returns a non-zero value, the HDGetError routine is called to obtain the error text.

Code this routine as follows:

int HDCloseTicket(String ticketHandle, String ticketNum)
ticketHandle

Specifies the handle of the ticket to be closed, if applicable.

ticketNum

Specifies the number of the ticket to be closed.