Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

getCaseEditMetadata(caseID, context)

Updated on July 20, 2021

Obtains the edit metadata of a case.

Returns

A promise that when resolved returns the edit metadata of a case.

Parameters

NameTypeDescriptionRequired
caseIDstringThe ID of the case on which the edit is being performed.
contextstringThe name of the context where the API is being called.

Usage example

In this example, the API returns the edit metadata of the case.

const caseID = "METORG-VEHICLEMANAGER-WORK V-7222";
const context = "app/primary_1";

PCore.getDataApiUtils().getCaseEditMetadata(caseID, context)
.then(response => {
   // The response of this API is as shown below:
   {
     uiResources: {},
     data: {
       caseInfo: {
            "caseTypeID": "MetOrg-VehicleManager-Work-VehiclePurchase",
            "owner": "[email protected]",
            "availableActions": [],
            "lastUpdatedBy": "[email protected]",
            "sla": {},
            "content": {
              "classID": "MetOrg-VehicleManager-Work-VehiclePurchase",
              "VehicleUsage": "",
              "Year": "2013",
              "VehicleType": "e7faf92e-e6b0-4793-b59f-e406a2abdb75",
              "NeededBy": "20200605T181445.999 GMT",
              "Model": "458 Italia",
              "Make": "Ferrari",
              "RequestingDepartment": "52724c8d-54b9-4819-851d-3765098adebb"
            },
            "createdBy": "[email protected]",
            "createTime": "2020-05-28T20:05:41.235Z",
            "urgency": "10",
            "name": "2013 Ferrari 458 ITALIA",
            "stages": [],
            "ID": "METORG-VEHICLEMANAGER-WORK V-7222",
            "lastUpdateTime": "2020-05-28T20:05:41.541Z",
            "stageID": "PRIM3",
            "stageLabel": "Delivery",
            "status": "New" 
          }
     }
   }
})
.catch(error => {
   console.log(error)
});

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us