---
schema_version: "1"
id: 7e7630e4d66fa792eeb004e01bc15c549a65d0287290e6cfb81a4046a5f7cdfd
title: Overriding Metadata Generated by a Transformation
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_integrate_transformation_schema_override.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_transformation_schema_override.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2f6caed939c1200b0009e36de9d6981e5fe8e0d6bbe42b99052884107c6a35c7
description: Optionally, you can override the metadata that is generated by a transformation. You can override object and field attributes. For example, you can change a field name that is extracted from a Salesforce object so that it appears differently in the dataset. To override the metadata, add the overrides to the Schema section of the transformation in the dataflow definition file.
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Overriding Metadata Generated by a Transformation

Optionally, you can override the metadata that is generated by a transformation. You can override object and field attributes. For example, you can change a field name that is extracted from a Salesforce object so that it appears differently in the dataset. To override the metadata, add the overrides to the Schema section of the transformation in the dataflow definition file.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available for an additional cost in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

In the Schema section, you can override the metadata attributes for one object only.

The Schema section in this sample sfdcDigest transformation contains metadata overrides:

```
"Extract_Opportunities": {
   "action": "sfdcDigest",
   "parameters": {
      "object": "Opportunity",
      "fields": [
         { "name": "Name" },
         { "name": "Amount" }
      ]
   },
   "schema": {
      "objects": [
         {
            "label":"Sales Opportunities",
            "fields": [
               {
                  "name": "Amount",
                  "label": "Opportunity Amount"
               }
            ]
         }
      ]
   }
}
```

## Object Attributes

You can override the following object attributes.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:27.419354838709676%">
          <col style="width:13.24884792626728%">
          <col style="width:59.331797235023046%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d98009e89">Object Attribute</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d98009e92">Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d98009e95">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Object Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e89 ">
              <code>label</code>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e92 ">String</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e95 ">
              <p>The display name for the object. Can be up to
                40 characters.</p>
              <p>Example:</p>
              <p style="margin-bottom:0;">
                <code>"label": "Sales
                  Data"</code>
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Object Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e89 ">
              <code>description</code>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e92 ">String</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e95 ">
              <p>The description of the object. Must
                be less than 1,000 characters.</p>
              <p>Example:</p>
              <p style="margin-bottom:0;">
                <code>"description": "The SalesData object tracks
                  basic sales data."</code>
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Object Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e89 ">
              <code>fields</code>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e92 ">Array</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e95 ">
              <p style="margin-bottom:0;">The array of fields for this object.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Field Attributes

You can override attributes of each specified dataset field.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:18.03155522163787%">
          <col style="width:8.715251690458302%">
          <col style="width:73.25319308790384%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d98009e194">Field Attribute</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d98009e197">Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d98009e200">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Field Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e194 ">
              <code>name</code>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e197 ">String</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e200 ">
              <p>Name of the field in the dataset. Identifies the field
                that you want to override.</p>
              <p>Examples:</p>
              <p><code>"name": "Amount"</code></p>
              <div>
                <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>"name": "Role.Name"</code></pre>
              </div>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e194 ">
              <code>label</code>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e197 ">String</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e200 ">
              <p>The display name for the field. Can be up to
                255 characters.</p>
              <p>Example:</p>
              <p style="margin-bottom:0;">
                <code>"label": "Opportunity Amount"</code>
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e194 ">
              <code>description</code>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e197 ">String</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e200 ">
              <p>The description of the field. Must
                be less than 1,000 characters.</p>
              <p>Add a description to annotate a field in the dataflow definition file. This
                description is not visible to users in the Analytics user
                interface.</p>
              <p>Example:</p>
              <p style="margin-bottom:0;">
                <code>"description": "The Amount field contains the
                    opportunity amount."</code>
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e194 ">
              <code>isSystemField</code>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e197 ">Boolean</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e200 ">
              <p>Indicates whether this field is a
                system field to be excluded from query results.</p>
              <p>Example:</p>
              <p style="margin-bottom:0;">
                <code>"isSystemField":
                  false</code>
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e194 ">
              <code>format</code>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e197 ">String</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e200 ">
              <p>The display format of the numeric value.</p>
              <p>Example:</p>
              <p><code>"format": "$#,##0.00" (Numeric)</code></p>
              <p style="margin-bottom:0;">For more
                information about valid formats, see <a href="https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_transformation_schema_override.htm&amp;release=264.0.0&amp;type=5">Numeric
                  Formats</a>.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Numeric Formats

An example of a typical numeric value is $1,000,000.99, which is represented as $#,##0.00 in the `format` field. You’re required to specify the precision and scale of the number. The format is specified by using the following symbols:

 
| Symbol | Meaning |
| --- | --- |
| 0 | One digit. Use to add leading or trailing 0s, like `#,###.00` for $56,375.00. |
| # | Adds zero or one digit |
| . | Default symbol used as the decimal separator. Use the `decimalSeparator` field to set the decimal separator to a different symbol. |
| \- | Minus sign |
| , | Grouping separator. Use the `groupSeparator` field to set the group separator to a different symbol. |
| $ | Currency sign. Use the `currencySymbol` field to set the currency indicator to a different symbol. |

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_note.png)

Note The format for numeric values when displayed in the UI defaults to No Format. Existing formatting is removed. For data ingestion, numeric values can’t contain any formatting (such as currency symbols or grouping separators). For example, $1,000.00 isn’t a valid numeric value; the correct value is 1000.00.

Valid characters when defining a numeric format are:

- 0
- #
- ,
- \-
- ,
- $

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_example.png)

Example

Let’s consider an example where you want to override the following object and field attributes that the sfdcDigest transformation extracts from the Opportunity object.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:50%">
              <col style="width:50%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d98009e478">Object/Field</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d98009e481">Attribute Changes</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Object/Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e478 ">Opportunity object</td>

                <td data-label="Attribute Changes" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e481 ">
                  <ul>
                    <li>Change the object label to "Sales Opportunities" </li>

                    <li>Add an object description</li>

                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Object/Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e478 ">Id field</td>

                <td data-label="Attribute Changes" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e481 ">
                  <ul>
                    <li>Change the field label to "Opportunity Id"</li>

                    <li>Hide the field from queries</li>

                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Object/Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e478 ">Amount field</td>

                <td data-label="Attribute Changes" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e481 ">
                  <ul>
                    <li>Change the field label to "Opportunity Amount"</li>

                    <li>Change the format to $#,##0.00 </li>

                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Object/Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e478 ">CloseDate field</td>

                <td data-label="Attribute Changes" class="slds-cell-wrap" style="vertical-align:top;" headers="d98009e481 ">
                  <ul>
                    <li>Change the field label to "Closing Date"</li>

                  </ul>
                </td>

              </tr>
            </tbody>
          </table>

To override the attributes, you add the Schema section with the override values to sfdcDigest in the dataflow definition file.

```
{
"Extract_Opportunities": {
   "action": "sfdcDigest",
   "parameters": {
      "object": "Opportunity",
      "fields": [
         { "name": "Id" },
         { "name": "Name" },
         { "name": "Amount" },
         { "name": "StageName" },
         { "name": "CloseDate" },
         { "name": "AccountId" },
         { "name": "OwnerId" }
      ]
   },
   "schema": {
      "objects": [
         {
            "label":"Sales Opportunities",
            "description": "These are all sales opportunities.",
            "fields": [
               {
                  "name": "Id",
                  "label": "Opportunity Id",
                  "isSystemField": true
               },
               {
                  "name": "Amount",
                  "label": "Opportunity Amount",
                  "format": "$#,##0.00"
               },
               {
                  "name": "CloseDate",
                  "label": "Closing Date"
               }
            ]
         }
      ]
   }
},
 "Register_Dataset_Opportunities": {
   "action": "sfdcRegister",
   "parameters": {
      "source": "Extract_Opportunities",
      "alias": "Opportunities",
      "name": "Opportunities"
      }
   }
}
```

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_important.png)

Important Analytics removes Schema sections from all transformations except sfdcDigest when you add a dataflow to a package. If you intend to package a dataflow, we recommend that you specify field attributes in the transformation itself, instead of in a schema section. For example, this computeRelative transformation uses a label attribute to change a field’s label.

```
  "CalcAmountAfterdiscount": {
    "action": "computeExpression",
    "parameters": {
      "mergeWithSource": true,
      "source": "getOpps",
      "computedFields": [
        {
          "name": "DiscountedAmount",
          "label": "Discounted Amount",
          "type": "Numeric",
          "saqlExpression": "Amount * Discount_Percentage__c",
          "precision": 10,
          "scale": 2
        }
      ]
    }
  },
```