This article demonstrates how to use the 'CloseTicket' SOAP API function and also provides a C# code sample to demonstrate implementation.
To use SOAP to close a ticket in FocalScope, do the following:
Please note: Parameter values for the 'CloseTicket' function must match the above examples precisely. Also, the security token is mandatory and must not have expired.
Figure 1 - Generating a SOAP query
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleSoapClient
{
class Program
{
static void Main(string[] args)
{
SoapService.SoapApi soapService = new SoapService.SoapApi();
soapService.Url = "http://localhost/emm/net/soapapi.asmx";
string secToken = "25ae61684c265be470bb57e6b2cad01a";
string TicketNumber = "10001";
string sReason = "No reason";
string fDiscardReminders = "1";
string ReopenDate = "2014-03-24 15:57";
soapService.CloseTicket(secToken, TicketNumber, sReason, fDiscardReminders, ReopenDate);
}
}
}
How to use FocalScope categories as custom fields and retrieve the associated tickets using SOAP API
0 Comments