GetHelpdeskTickets

Description

This class retrieves helpdesk ticket information based on a wide range of criteria. You can optionally get the ticket responses, attachments, notes, events and user data. This class should only be instantiated by dispatchMBAPI() found in include/mbapi/mbapi.php. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the GetHelpdeskTickets command:

Attributes

package
modernbill
subpackage
mbapi
version
0.1
author
Vic Fryzel
author
Andy Christ

Example Request

	<mbapi>
		<command><!-- None --></command>
		<showXMLHeader><!-- None --></showXMLHeader>
		<params>
			<hdTicketID><!-- int --></hdTicketID>
			<hdBucketID><!-- int --></hdBucketID>
			<hdDepartmentID><!-- int --></hdDepartmentID>
			<userID><!-- int --></userID>
			<userType><!-- int --></userType>
			<hdTicketSubject><!-- string --></hdTicketSubject>
			<hdTicketBody><!-- string --></hdTicketBody>
			<helpdeskTicketPriority><!-- string --></helpdeskTicketPriority>
			<helpdeskTicketStatus><!-- string --></helpdeskTicketStatus>
			<hdTicketDateCreatedLessThan><!-- int --></hdTicketDateCreatedLessThan>
			<hdTicketDateCreated><!-- int --></hdTicketDateCreated>
			<hdTicketDateCreatedGreaterThan><!-- int --></hdTicketDateCreatedGreaterThan>
			<hdTicketDateModifiedLessThan><!-- int --></hdTicketDateModifiedLessThan>
			<hdTicketDateModified><!-- int --></hdTicketDateModified>
			<hdTicketDateModifiedGreaterThan><!-- int --></hdTicketDateModifiedGreaterThan>
			<getHelpdeskTicketResponseData><!-- int --></getHelpdeskTicketResponseData>
			<getHelpdeskTicketAttachmentData><!-- int --></getHelpdeskTicketAttachmentData>
			<getHelpdeskTicketNoteData><!-- int --></getHelpdeskTicketNoteData>
			<getHelpdeskTicketEventData><!-- int --></getHelpdeskTicketEventData>
			<getUserData><!-- int --></getUserData>
			<sortDir><!-- None --></sortDir>
			<sortColumn><!-- None --></sortColumn>
			<recordOffset><!-- None --></recordOffset>
			<numRecords><!-- None --></numRecords>
		</params>
	</mbapi>

		

Example Response

None
		

Request Elements

mbapi
Type
None
Description
None
Children
command
Type
None
Description
None
showXMLHeader
Type
None
Description
None
params
Type
None
Description
None
Children
hdTicketID
Type
int
Description

The ID of the ticket to fetch. This will always select at most 1 ticket.

hdBucketID
Type
int
Description

The ID of the bucket to fetch. This will always select at most 1 bucket.

hdDepartmentID
Type
int
Description

The ID of the department to fetch. This will always select at most 1 department.

userID
Type
int
Description

The ID of the client or admin whose tickets you wish to fetch. For clients, this should always be their clientID.

userType
Type
int
Description

The type of user for the tickets you wish to fetch. This is used by getUserData to obtain the correct information.

hdTicketSubject
Type
string
Description

The subject of the ticket to fetch. This is a searched using a LIKE clause.

hdTicketBody
Type
string
Description

The text body of the ticket to fetch. This is a searched using a LIKE clause.

helpdeskTicketPriority
Type
string
Description

The exact string representation of the priority of the ticket to fetch.

helpdeskTicketStatus
Type
string
Description

The exact string representation of the status of the ticket to fetch.

hdTicketDateCreatedLessThan
Type
int
Description

The maximum UNIX timestamp for which a helpdesk ticket in the result set was created.

hdTicketDateCreated
Type
int
Description

The exact UNIX timestamp for which a helpdesk ticket in the result set was created.

hdTicketDateCreatedGreaterThan
Type
int
Description

The minimum UNIX timestamp for which a helpdesk ticket in the result set was created

hdTicketDateModifiedLessThan
Type
int
Description

The maximum UNIX timestamp for which a helpdesk ticket in the result set was modified.

hdTicketDateModified
Type
int
Description

The exact UNIX timestamp for which a helpdesk ticket in the result set was modified.

hdTicketDateModifiedGreaterThan
Type
int
Description

The minimum UNIX timestamp for which a helpdesk ticket in the result set was modified

getHelpdeskTicketResponseData
Type
int
Description

Set to 1 obtain all response data associated with the ticket.

getHelpdeskTicketAttachmentData
Type
int
Description

Set to 1 obtain all attachment data associated with the ticket.

getHelpdeskTicketNoteData
Type
int
Description

Set to 1 obtain all note data associated with the ticket.

getHelpdeskTicketEventData
Type
int
Description

Set to 1 obtain all event data associated with the ticket.

getUserData
Type
int
Description

Set to 1 obtain all user data associated with the ticket.

sortDir
Type
None
Description
None
sortColumn
Type
None
Description
None
recordOffset
Type
None
Description
None
numRecords
Type
None
Description
None

Response Elements

None