EMS API Functions—Delete Operations

DeleteServiceOrder

Requires EMS API Advanced License

Description

This API allows deletion of service orders.

Request Parameters 

Name

Description

Type

UserName

EMS User Name

String

Password

EMS User Password

String

ServiceOrderID

Service Order ID

Integer

Response Elements

Name

Description

Type

Message

“Success!” or error, i.e. “Service Order is not available.”

String

Sample Code

Private Sub DeleteServiceOrder()
               Dim svc As New EMSAPI.ServiceSoapClient
               Dim objReader As New System.IO.StringReader
		(DeleteServiceOrder((“UserID”, “Password”, 1234))
               Dim dst As New DataSet("Data")
               dst.ReadXml(objReader)
End Sub

Example Response 

<Messages>
<Message>
	<Message>Success!</Message>
	</Message>
</Messages>

DeleteServiceOrderDetail

Requires EMS API Advanced License 

Description

This API allows deletion of service order details (resources).

Request Parameters

Name

Description

Type

UserName

EMS User Name

String

Password

EMS User Password

String

ServiceOrderDetailID

Service Order Detail ID

Integer

Response Elements

Name

Description

Type

Message

“Success!” or error, i.e. “Service Order Detail is not available.”

String

Sample Code

Private Sub DeleteServiceOrderDetail()
               Dim svc As New EMSAPI.ServiceSoapClient
               Dim objReader As New System.IO.StringReader
		(svc.DeleteServiceOrderDetail(“UserID”, 
		“Password”, 1234))
               Dim dst As New DataSet("Data")
               dst.ReadXml(objReader)
End Sub

Example Response

<Messages>
<Message>
	<Message>Success!</Message>
	</Message>
</Messages>