Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Basic Structure of the XMD JSON File

The XMD file is in JSON format. It contains a block of parameters for each dataset field. This design makes it easier to debug specific field behavior and maintain consistent syntax usage, and it streamlines the generation process. XMD doesn’t support empty strings.

The file uses this structure.

1{
2  "dataset": {},
3  "dates": [],
4  "dimensions": [],
5  "derivedDimensions": [],
6  "measures": [],
7  "derivedMeasures": [],
8  "organizations": [],
9  "showDetailsDefaultFields": []
10}

The dataset field specifies the dataset to which the XMD applies. CRM Analytics sets and maintains this parameter internally. Do not modify it.

For descriptions of the fields, see Extended Metadata (XMD) Reference. To learn how to structure and format the XMD parameters for different purposes, see the use cases.