Retrieve SR Approvals

You can retrieve the approvals of an SR using the following API Request with details such asĀ Requestor ID, Requestor Location ID, Catalog ID, and so on.

To authenticate the below API, seeĀ API Authentication and Authorization.

Service NameHTTP Method
SR_GetApprovalsĀ 

POST


Sample Request
{
    "ServiceName": "SR_GetApprovals",
    "objCommonParameters": {
        "_ProxyDetails": {
            "AuthType": "APIKEY",
            "APIKey": "XXXXXXXXXXXXXXXX",
            "ProxyID": 0,
            "ReturnType": "JSON",
            "OrgID": 1
        },
        " ServiceRequestJSON": {
            "ServiceRequestJson": "{\"RequestorID\":\"11\",\"RequestorLocationID\":\"1861\",\"TicketDetailList\":[],\"CatalogID\":1009,\"PageName\":\"LOG_SR\",\" WorkgroupID\":1,\"ServiceTicketID\":\"0\"}"
        }
    }
}

Request Parameters

Parameter NameTypeDescriptionMandatory

RequestorIDĀ 

INTEGER

Unique Identification number of the Requester.

TRUE

RequestorLocationID

INTEGER

Location ID of the Requester.

FALSE

TicketDetailList

INTEGER

Details of the Ticket List.

FALSE

CatalogIDĀ 

INTEGER

Unique Identification number of the Service Catalog.

TRUE

PageName

INTEGER

Name of the page.

The values are constant and as follows:

  • TicketDetailĀ if the Requester is an Executive.
  • LogTicketĀ if the Requester is a Caller.

FALSE

WorkgroupID

INTEGER

Unique Identification number of the Work Group.

FALSE

ServiceTicketIDĀ 

STRING

Unique Identification number of the Service Request.

TRUE

Sample Response
{
    "Errors": "",
    "Message": null,
    "Output": "",
    "TokenID": "",
    "OrgID": 0,
    "OutputObject": {
        "CatalogID": 1009,
        "Instance": "IT Tec",
        "Activities": [
            {
                "ApproverType": null,
                "ApproverTypeID": "EndUser",
                "ApproverID": "1174",
                "AutoApprovalDurationDays": null,
                "AutoApprovalDurationHours": null,
                "AutoApprovalD uration": 0,
                "SelectIndividual": null,
                "UserGroupID": null,
                "WorkgroupID": null,
                "EmailNotificati on": true,
                "EnableRefBackToRequestor": true,
                "EnableRefBackToPrevApprovers": true,
                "AutoA pprovalType": "approve",
                "CustomGroupID": null,
                "ApproverRole": "EndUser",
                "ApproverUse rName": "",
                "ApproverUserID": "",
                "Group_EnableApproverSelection": "False",
                "GroupApprove rJSON": "",
                "HeadOfAttributeName": "",
                "ApproverProfileImageName": "",
                "HasCompleteAppr ovalFlow": true,
                "NotificationIDs": null,
                "ApprovalStatus": null,
                "ApprovalDate": null,
                "Approva lRemarks": null,
                "ReferredBackLevel": 0,
                "ReferredBackDate": null,
                "IsApproved": null,
                "IsCurre ntApprover": false,
                "IsNewlyAddedApproval": false,
                "ApprovalForwarded": false,
                "ForwardTo AllApprover": "",
                "IsForwardToApproved": false,
                "ForwardToApprovalDate": null,
                "ForwardT oApprovalRemarks": null,
                "ForwardedToApproverUserName": null,
                "ForwardedToApprover ProfileImageName": null,
                "Status": "",
                "AutoApprove": false,
                "ForwardStatus": "",
                "IsReferredBac k": null,
                "ReferredBackBy": null,
                "ApprovalLevel": "1",
                "EnableSendMailForApprover": null,
                "RI D": 2085,
                "WorkflowID": 1226,
                "SourceID": null,
                "TargetID": null,
                "ExecutionOrder": null,
                "Positio nX": null,
                "PositionY": null,
                "ActionKey": null,
                "HasCondition": null,
                "Title": "RM",
                "UniqueID":nu ll,
                "ActivityType": "TASK",
                "ActivityTypeID": 3,
                "Condition": null,
                "ConditionJSON": null,
                "MailT oWGOwner": null,
                "MailToWG": null,
                "MailToAssignedTo": null,
                "MailToCaller": null,
                "ToList": null,
                "CCList": null,
                "MailSubject": null,
                "MailBody": null,
                "NotificationType": "email",
                "Notificati on_AdditionalUser": null,
                "ActivityID": 3,
                "ActivityRID": null,
                "UserName": "peter.paul"
            }
        ],
        "Connections": null,
        "RequestorID": null,
        "RequestorLocationID": null,
        " WorkgroupID": null,
        "TicketDetailList": null,
        "PageName": null,
        "SC_AdditionalInfo": {
            "FirstLe velNotificationIDs": "",
            "WorkflowID": 1226
        },
        "ServiceTicketID": 0,
        "LastActivityID": null,
        "IsCart ": null,
        "CartID": null,
        "RID": 1226,
        "VersionNumber": "V9",
        "Active": null,
        "CreatedBy": null,
        "Inclu deInactive": null
    }
}

Status and Error Codes

For more information, seeĀ Status and Error Messages.