Click or drag to resize
ITicketManagerCreateTicket Method

[This is preliminary documentation and is subject to change.]

Creates a new ticket with attachments

Namespace: Netadmin.Management.Ticketing
Assembly: Netadmin.Management.Interfaces (in Netadmin.Management.Interfaces.dll) Version: release/9.0@131b654fe7332b0776120c2b44d96c6cac5ac9a2
Syntax
long CreateTicket(
	string title,
	long regardingObjectTypeId,
	long regardingObjectId,
	long ticketFlowActionId,
	ITicketPost initialPost,
	IEnumerable<IPostAttachmentData> attachments,
	long serviceProviderId = 0
)

Parameters

title
Type: SystemString
Title of the ticket
regardingObjectTypeId
Type: SystemInt64
The object type id of the regarding object
regardingObjectId
Type: SystemInt64
The object id of the regarding object
ticketFlowActionId
Type: SystemInt64
The id of the Ticket Flow Action used to create the ticket
initialPost
Type: Netadmin.Management.Ticketing.DtoITicketPost
The first post in the ticket
attachments
Type: System.Collections.GenericIEnumerableIPostAttachmentData
Attachments to add to the ticket
serviceProviderId (Optional)
Type: SystemInt64
If non-zero, will link the ticket to a service provider

Return Value

Type: Int64
The created ticket's id
Exceptions
ExceptionCondition
ArgumentExceptionTypeId is required on the initial post
ObjectNotFoundExceptionThrown if the type could not be found
InvalidOperationExceptionThe CompanyId of the Ticket Type does not match the CompanyId of the 'Regarding' object
InvalidIdentifierExceptionThrown if the identifier is invalid
ValueIsRequiredExceptionThrown if the type is missing.
See Also