Are there any sample VB Script code to add requests in ServiceDesk plus – MSP application?

Please use the below code to add request using VB script:

Dim

fullUrl As String = My.Settings.ServiceDeskURL & “/servlets/RequestServlet”

Dim oWeb As New System.Net.WebClient()

Dim Params As New NameValueCollection()

Params.Add(

“operation”, NewTicket.Operation)

Params.Add(

“priority”, NewTicket.Priority)

Params.Add(

“subject”, NewTicket.Subject)

Params.Add(

“description”, NewTicket.Description)

Params.Add(

“category”, NewTicket.Category)

Params.Add(

“username”, NewTicket.Username)

Params.Add(

“logonDomainName”, NewTicket.LogonDomainName)

Params.Add(

“password”, NewTicket.Password)

Params.Add(

“mode”, “System Generated”)

Dim responseArray As Byte() = oWeb.UploadValues(fullUrl, Params)

MsgBox(System.Text.

Encoding.ASCII.GetString(responseArray))

Need More Help?

Are you looking for a personalized customer support? Submit your question or Call our Toll Free Number to speak with ServiceDesk Plus MSP Expert who can offer a better solution for your requirements.

Submit a Ticket
Email : sdpmsp@manageengine.com
Toll Free : 1-888-720-9500