You are viewing an old version of this page. View the current version.
Compare with Current View Page History
Version 1 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.
POST
{ "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\"}" } } }
RequestorID
INTEGER
Unique Identification number of the Requester.
TRUE
RequestorLocationID
Location ID of the Requester.
FALSE
TicketDetailList
Details of the Ticket List.
CatalogID
Unique Identification number of the Service Catalog.
PageName
Name of the page.
The values are constant and as follows:
WorkgroupID
Unique Identification number of the Work Group.
ServiceTicketID
STRING
Unique Identification number of the Service Request.
{ "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 } }
For more information, see Status and Error Messages.