Skip to main content


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

getRawMetadata()

Updated on July 20, 2021

Obtains the complete metadata of the component in its raw and unresolved format.

Note: Use this API only in advanced use cases where a component needs the complete unresolved metadata. In most cases, use the getConfigProps(destinationObject) API to get the resolved configuration metadata of the component. The format and content of the raw metadata returned may change as the DX API changes.

Returns

The raw metadata of the component as an object.

Parameters

This API does not have parameters.

Usage example

In this example, the API returns the raw unresolved metadata for a simple Table component.

{
  "type": "Table",
  "config": {
    "referenceList": "D_pyMyWorkList.pxResults",
    "rowClickAction": "openAssignment",
    "personalizationId": "pyMyWork-D_pyMyWorkList",
    "fields": [
      {
        "type": "Text",
        "config": { "label": "@L Priority", "formatType": "number", "value": "@P .pxUrgencyAssign" }
      },
      {
        "type": "Text",
        "config": { "label": "@L ID", "value": "@P .pxRefObjectInsName" }
      },
      {
        "type": "Text",
        "config": { "label": "@L Label", "value": "@P .pyLabel" }
      },
      {
        "type": "DateTime",
        "config": { "sortDirection": "DESC", "sortPriority": "1", "label": "@L Creation date/time", "value": "@P .pxCreateDateTime" }
      },
      {
        "type": "Text",
        "config": { "label": "@L Status", "value": "@P .pyAssignmentStatus" }
      }
    ]
  }
}

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