Using the GetRequestData Web Method
3 min
returns the data for the specified service request request syntax public frsheatgetrequestdataresponse getrequestdata(string sessionkey, string tenantid, string strreqnumber) parameters sessionkey the session key from the connect web method tenantid the tenant for which the session key is authenticated strreqnumber the numeric id of the service request return value frsheatgetrequestdataresponse object, defined as follows public class frsheatgetrequestdataresponse { public string status { get; set; } public string exceptionreason { get; set; } public frsheatservicereqrequest reqdata { get; set; } } the frsheatgetrequestdataresponse class has the following fields status contains a status indicating whether the web method was successful if the session key (returned from the connect web method) is valid, this field returns a value of success exceptionreason contains exception information, if the application throws an exception when running this web method reqdata contains an frsheatservicereqrequest object containing the service request that is successfully submitted the following table lists the available status values and describes how to interpret them \<font color="#ffffff">status\</font>\<font color="#ffffff">explanation\</font> success successfully retrieved the service request with the specified numeric id this is available in the reqdata field notfound the tenant does not contain a service request with the specified numeric id ensure that the numeric id is spelled correctly error an error was encountered during the execution of this web method inspect the corresponding exceptionreason field to determine why the web method has failed example frsheatgetrequestdataresponse getrequestdataresponse = frsvc getrequestdata(authsessionkey, tenantid, strreqrecid); frsheatservicereqrequest srrequest; if (getrequestdataresponse status == "success") { srrequest = getrequestdataresponse reqdata; // go ahead and access the relevant properties of interest from the service request }
