You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 9 Next »
You can create an SR with an external Service Catalog using the following API Request.
To authenticate the below API, see API Authentication and Authorization.
POST
{ "ServiceName": "SR_LogServiceCatalogForExternal", "objCommonParameters": { "_ProxyDetails": { "AuthType": "APIKEY", "APIKey": "XXXXXXXXXXXXXXXX", "OrgID": "1", "ReturnType": "JSON", "ProxyID": 0, "TokenID": "" }, "objSRServiceTicketCatalogParam": { "ServiceCatalogID": 3, "LogSRForUserMode": false, "ServiceCategoryID": 1, "DelegationMode": false, "WorkGroupID": 6, "DelegateeUserID": 0, "Org_ID": 1, "ListCustomAttributes": [ { "Attribute_Type": "TextBox", "Attribute_Value": "Test Attributes", "Attribute_Name": "Test TextBox", "Attribute_ID": 3867 }, { "Attribute_Type": "CheckBox", "Attribute_Value": true, "Attribute_Name": "Test Checkbox", "Attribute_ID": 3868 } ], "ServiceCategoryName": "Desktop", "ListMVCustomAttributes": [ { "RowID": "1", "Attribute_Value": 1, "AttributeType": "DROPDOW NLIST", "Attribute_ID": "1", "Attribute_Name": "Location", "Attribute_Text": "Test1" }, { "RowID": "1", "Attribute_Value": 2, "AttributeType": "DROPDOWNLIST", "Attribute_ID": "3", "Attribute_ Name": "attachment", "Attribute_Text": "Test2" }, { "RowID": "1", "Attribute_Value": "4", "Attribute Type": "DROPDOWNLIST", "Attribute_ID": "4", "Attribute_Name": "Items", "Attribute_Text": "T est3" } ], "ServiceCatalogName": "Catalog Name", "JustificationRemarks": "Test Remarks..", "NoOfApprovals": 2, "SupportFunction": "IT Tec", "Approver1": "Workgroup Owner Approval", "Approver1Id": "9", "Approver1Name": "Approver Name", "Approver2": "", "Approver2Id": "", "Approver2Name": "" } } }
ServiceCatalogID
INTEGER
Unique identification number of the Catalog.
TRUE
LogSRForUserMode
BOOLEAN
Is the SR logged for a user?
The values are constant and as follows:
FALSE
ServiceCategoryID
Unique Identification number of the Service Category.
The value is either true or false.
STRING
Unique Identification number of the user who is delegated with.
DelegateeUserID is a mandatory parameter if the DelegationMode parameter value is true.
ARRAY
Specify the list of Custom Attributes.
You can specify the following parameters:
Specify the list of Multi Valued Custom Attributes.
Specify the required number of Approvals.
Based on NoOfApprovals count, you need to provide approver details such as Approver, ApproverId, and ApproverName.
Name of the Instance.
For Example: Info
{ "Errors": "", "Message": null, "Output": "", "TokenID": null, "OrgID": 0, "OutputObject": { "Catalog Details": { "Message": "Successfully saved the service request. Service Request ID: SR2507", "SRId": "2507", "UploadControlUID": [] } } }
For more information, see Status and Error Messages.