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 create an SR with the Service Catalog using the following API Request. 

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

Service NameHTTP Method
SR_LogServiceCatalog 

POST


Code Block
titleSample Request
linenumberstrue
{
  "ServiceName": "SR_LogServiceCatalog",
  "objCommonParameters": {
    "_ProxyDetails": {
      "AuthType": "APIKEY",
      "APIKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "OrgID": "1",
      "ReturnType": "JSON",
      "ProxyID": 0,
      "TokenID": ""
    },
    "objSRServiceTicket": {
      "ServiceCatalogID": 1031,
      "LogSRForUserMode": false,
      "ServiceCategoryID": 1,
      "DelegationMode": false,
      "WorkGroupID": 17,
      "DelegateeUserID": 0,
      "Org_ID": "1",
      "strCustomAttributes": [
        {
          "Attribute_Type": "TextArea",
          "Attribute_Value": "Test forServiceCatalog",
          "Attribute_ID": 1085,
          "Attribute_Name": "Address"
        }
      ],
      "strMvCustomAttributes": [
        {
          "RowID": "1",
          "Attribute_Value": 18,
          "AttributeType": "TEXTBOX",
          "Attribute_ID": "1075",
          "Attribute_Name": "Age",
          "Attribute_Text": 18
        }
      ],
      "ServiceCategoryName": "Desktop",
      "ServiceCatalogName": "NoApproval",
      "JustificationRemarks": "remarks",
      "NoOfApprovals": 2,
      "Approver1Name": "Jyothi",
      "Approver1": "WorkgroupOwnerApproval",
      "Approver1Id": "9",
      "Approver2Name": "Megha",
      "Approver2": "TechnicianSelectable",
      "Approver2Id": "6",
      "SupportFunction": "ITTec"
    }
  }
}

Request Parameters

Parameter NameTypeDescriptionMandatory

SupportFunction 

Status
colourGreen
titleString

The value is Instance Code. 

For Example: IT Tec.

Status
colourGreen
titletrue

ServiceCatalogID 

Status
titlenumber

Unique Identification number of the Service Catalog. 

  • If the Service Catalog has mandatory Custom Attributes, the strCustomAttributes parameter is mandatory:
  • If the Service Catalog has mandatory multivalued custom attributes, the strMvCustomAttributes is mandatory.

Status
colourGreen
titletrue

ServiceCategoryID 

Status
titlenumber

Unique Identification number of the Service Category.

Status
colourGreen
titletrue

WorkGroupID 

Status
colourGrey
titlenumber

Unique Identification number of the Workgroup.

Status
colourGreen
titletrue

Org_ID 

Status
colourGreen
titleString

Unique Identification number  of an organization.

Status
colourGreen
titletrue

NoOfApprovals 

Status
colourGrey
titlenumber

Based on NoOfApprovals count user needs to provide approver details.

Status
colourGreen
titletrue

Code Block
titleSample Response
linenumberstrue
{
    "Errors": "",
    "Message": null,
    "Output": "",
    "TokenID": "",
    "OrgID": 0,
    "OutputObject": {
        "CatalogD etails": {
            "Message":"Successfully	saved the service request. Service Request ID: SR2512",
            "SRId": "2512",
            "UploadControlUID": []
        }
    }
}

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

| |