Service Manager

Home 

This is the latest version of the help for Ivanti Service Manager 2018. If you cannot find some of the features described in the help, you may be using an older version of the application. To upgrade the application, click here.
To view the help for the latest version of Service Manager, click here

Using the GetRequestData Web Method

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 system throws an exception when running this web method.

reqData: Contains an FRSHEATServiceReqRequest object containing the service request that is successfully submitted.

Refer to Using the GetRequestData Web Method for the definition of the FRSHEATServiceReqRequest class.

The following table lists the available status values and describes how to interpret them.

Status

Explanation

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.

            }


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other