runTicketAction()

Ticket runTicketAction(string ticketNumber, int ticketAction)

This method returns information about a specified ticket after running a ticket action.

Parameters

ticketNumber
Format: string
Purpose: Specifies the ticket number.
ticketAction
Format: integer
Purpose: Specifies the ticket action ID. The ID is the Primary Key from TicketAction table.

Results

This method returns information about a given ticket after running a ticket action.

There are no messages defined by this method.

Example: A returned Ticket XML document

This example shows a Ticket XML document when ticket number 183 and ‘Close ticket’ ticket action are given as parameters.

<Ticket xmlns="http://xml.inomial.com/smile/2.xsd"
xmlns="http://ws.inomial.com/smile.2">
  <Number>183</Number>
  <Subject>Support call</Subject>
  <TicketType key="370">Support ticket</TicketType>
  <TicketStatus key="1">New</TicketStatus>
  <AccountUSN>2142420815</AccountUSN>
  <Created>2014-05-01T09:38:11.370+10:00</Created>
  <Opened>2014-05-01T09:39:02.704+10:00</Opened>
  <Properties>
    <Object>
      <String name="supportIssueType"></String>
    </Object>
  </Properties>
</Ticket> 

Faults

NoSuchItemException

This fault is returned when the specified ticket number does not match a ticket.

Java client syntax

java -cp build/smilewsv2-client.jar [options]
 com.inomial.smile.client.v2.examples.RunTicketAction ticketNumber
 ticketAction
ticketNumber
Purpose: Specifies the ticket number.
ticketAction
Purpose: Specifies the ticket action ID.
Note: For more information about the Java client and the options it accepts, see Java client syntax.