---
schema_version: "1"
id: b8d0e77d8fc85cb994c44ef11a6c17425ec40e507b9afe3061e6a8597c430ea8
title: MktCalcInsightObjectDef
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_mktcalcinsightobjectdef.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_mktcalcinsightobjectdef.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 86c5d038f66a2d45d96eea8ca42b8fc5fce39c1218c1d4eeb032826b53ddb37a
description: Represents Calculated Insight definition such as expression.
---
# MktCalcInsightObjectDef

Represents Calculated Insight definition such as expression.

![Important](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## Parent Type

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

## File Suffix and Directory Location

MktCalcInsightObjectDef components have the suffix mktCalcInsightObjectDef and are stored in the mktCalcInsightObjectDefs folder.

## Version

MktCalcInsightObjectDef components are available in API version 52.0 and later.

## Special Access Rules

You need the Salesforce CustomizeApplication permission to access this object.

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d665153e107">Field Name</th>

              <th class="featureTableHeader  " id="d665153e110">Field Type</th>

              <th class="featureTableHeader  " id="d665153e113">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d665153e107" data-title="Field Name"><span class="keyword parmname">builderExpression</span></td>

              <td class="entry" headers="d665153e110" data-title="Field Type">string</td>

              <td class="entry" headers="d665153e113" data-title="Description">Reserved for internal use.</td>

            </tr>

            <tr>
              <td class="entry" headers="d665153e107" data-title="Field Name"><span class="keyword parmname">creationType</span></td>

              <td class="entry" headers="d665153e110" data-title="Field Type">CalculatedInsightCreationType(<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title" target="_blank">enumeration</a> of type string)</td>

              <td class="entry" headers="d665153e113" data-title="Description">Required. Describes whether this Calculated Insight Object Definition was added
                was added by the customer. Valid values include: Custom.</td>

            </tr>

            <tr>
              <td class="entry" headers="d665153e107" data-title="Field Name"><span class="keyword parmname">description</span></td>

              <td class="entry" headers="d665153e110" data-title="Field Type">string</td>

              <td class="entry" headers="d665153e113" data-title="Description">The description for this Calculated Insight Object Definition.</td>

            </tr>

            <tr>
              <td class="entry" headers="d665153e107" data-title="Field Name"><span class="keyword parmname">expression</span></td>

              <td class="entry" headers="d665153e110" data-title="Field Type">string</td>

              <td class="entry" headers="d665153e113" data-title="Description">Required when the Calculated Insight Object Definition is for internal
                insight type. This is the SQL query to generate the calculated
                insight.</td>

            </tr>

            <tr>
              <td class="entry" headers="d665153e107" data-title="Field Name"><span class="keyword parmname">masterLabel</span></td>

              <td class="entry" headers="d665153e110" data-title="Field Type">string</td>

              <td class="entry" headers="d665153e113" data-title="Description">Required. App name for this Calculated Insight Object Definition.</td>

            </tr>

            <tr>
              <td class="entry" headers="d665153e107" data-title="Field Name"><span class="keyword parmname">system</span></td>

              <td class="entry" headers="d665153e110" data-title="Field Type">string</td>

              <td class="entry" headers="d665153e113" data-title="Description">
                <p dir="ltr" class="p">Required. Indicates how this calculated insight object definition was
                  added, by the customer or by the system. Valid values are: </p>

                <a name="ul_oxj_jmv_bfc"><!-- --></a>
                <ul class="ul bulletList" id="ul_oxj_jmv_bfc">
                  <li class="li">Custom </li>

                  <li class="li">System (API version 61.0 and later)</li>

                </ul>

              </td>

            </tr>

          </tbody>

        </table>

## Declarative Metadata Sample Definition

The following is an example of a MktCalcInsightObjectDef component.

<?xml version="1.0" encoding="UTF-8"?>
<MktCalcInsightObjectDef xmlns="http://soap.sforce.com/2006/04/metadata">
    <creationType\>Custom</creationType\>
    <description\>InsightName description</description\>
    <expression\>SELECT COUNT(ssot\_\_Individual\_\_dlm.ssot\_\_Id\_\_c) as count\_\_c FROM ssot\_\_Individual\_\_dlm</expression\>
</MktCalcInsightObjectDef\>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").