Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated the code macro with the following parameter(s): [theme]
Scroll ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue
#F0F0F0#F0F0F0

3

Scroll export button
scopecurrent
template-id4fda9400-a7df-4ede-a95f-e4ae5fcf4796
captionDownload this Page
add-onScroll PDF Exporter

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


Code Block
titleSample Request
linenumberstrue
{
    "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 

Status
colourGrey
titleinteger

Unique Identification number of the Requester.

Status
colourGreen
titletrue

RequestorLocationID

Status
colourGrey
titleinteger

Location ID of the Requester.

Status
colourGrey
titlefalse

TicketDetailList

Status
colourGrey
titleinteger

Details of the Ticket List.

Status
colourGrey
titlefalse

CatalogID 

Status
colourGrey
titleinteger

Unique Identification number of the Service Catalog.

Status
colourGreen
titletrue

PageName

Status
colourGrey
titleinteger

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.

Status
colourGrey
titlefalse

WorkgroupID

Status
colourGrey
titleinteger

Unique Identification number of the Work Group.

Status
colourGrey
titlefalse

ServiceTicketID 

Status
colourGreen
titleString

Unique Identification number of the Service Request.

Status
colourGreen
titletrue

Code Block
titleSample Response
linenumberstrue
{
    "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.

Scroll ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue
1

| |