Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

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.

  • No labels