ReportType defines a custom report type: the reusable framework of objects, relationships, and available columns from which users create reports. Its relationship structure determines which records can participate, while its layout determines which fields report authors can select.
It is not an individual Report definition or a set of report results. A field appearing in a report type's layout does not establish that any existing report selects that field.
Key Elements
Nested element paths below show where a setting belongs within the report type definition.
| Element | What the Element Controls |
|---|---|
fullName |
The unique developer name used for API identity. It is distinct from the user-facing label and from a Salesforce record ID. |
baseObject |
Required primary object, such as Account. Standard, custom, and external objects are supported. It cannot be changed after creation. |
label |
Required user-facing label for the report type. |
category |
The report category. Allowed values are accounts, opportunities, forecasts, cases, leads, campaigns, activities, busop, products, admin, territory, territory2, usage_entitlement, wdc, calibration, other, content, quotes, individual, employee, data_cloud, commerce, flow, and semantic_model. |
deployed |
Required availability setting. true makes the report type available to users; false marks it as still in development. |
autogenerated |
Indicates that Salesforce generated the report type when historical trending was enabled for an entity. It does not enable historical trending. |
join |
An ObjectRelationship definition that joins another object to the primary object. A nested join extends the relationship chain. |
join.relationship |
Required within each relationship definition. Identifies the relationship being joined, such as Contacts. Interpret the value in its relationship context, not automatically as a standalone object API name. |
join.outerJoin |
Required within each relationship definition. true retains a row without a matching joined record; false requires a match. |
sections |
Groups the columns available to report authors. |
sections.masterLabel |
Required label for a group of columns in the report wizard. |
sections.columns.table |
Required object context for a column. It can be a joined path, such as Account.Contacts. |
sections.columns.field |
Required field API name or lookup path within the column's table context. Examples include Owner.Email and ReportsTo.CreatedBy.Contact.Owner.MobilePhone. |
sections.columns.checkedByDefault |
Required for each column. true selects it by default; false leaves it available without selecting it by default. |
sections.columns.displayNameOverride |
Changes the displayed column name, not the underlying field reference. |
Behavior and Constraints
Availability and primary object
deployed controls availability separately from the objects and columns defined by the type. Setting it to true does not change the relationship chain or column layout.
baseObject is fixed after initial creation. Changing the primary object is therefore not an in-place update to an existing report type.
Joins determine record inclusion
A join combines records through an object relationship. Salesforce first joins baseObject to the relationship identified by the outermost join. Nested join definitions then extend that resulting dataset.
- A custom report type can join a maximum of four objects, including the primary object.
- An outer join, represented by
outerJoin=true, retains a row even when the joined object has no matching record. - An inner join, represented by
outerJoin=false, requires a matching record. - In a chain containing more than two objects, an inner join cannot follow an earlier outer join. Once the chain uses an outer join, later relationships cannot switch back to inner joins.
These settings affect which records can appear, not merely which fields are available. For example, requiring matching Contacts excludes Accounts without Contacts. An outer join can retain those Accounts.
Column paths can add dependencies beyond the join chain
Each column pairs table with field. The table supplies the object context, while the field identifies the field within that context. A column with table=Account.Contacts and field=Owner.Email combines a joined-object path with a lookup path.
Lookup-based columns can introduce dependencies on objects and fields beyond those named by baseObject and join. An inventory that examines only the primary and joined objects can miss these dependencies.
Columns are not strictly required by the metadata definition, but a report type without columns provides no useful reporting layout. Setting checkedByDefault to false does not remove a column from that layout.
Historical trending uses historical field references
autogenerated records that Salesforce generated the report type when historical trending was enabled. It is not the switch for enabling trending.
Report types reference fields by API name. Historical fields associated with trackTrending=true use names containing hst, such as Field2__c_hst. A historical column can use the table path CustomTrendedObject__c.CustomTrendedObject__c_hst. These historical references are not interchangeable with the corresponding current-value field names.
Deployment and Retrieval
In Metadata API format, each custom report type has one file with the suffix .reportType. Files reside in the reportTypes directory of the corresponding package directory.
ReportType supports the * wildcard in a package.xml manifest. To select all members of this type, use ReportType as the metadata type name and * as the member.
The fullName developer name must be unique and contain only alphanumeric characters and underscores. It must begin with a letter, contain no spaces, not end with an underscore, and not contain two consecutive underscores. Do not substitute the report type's label or a Salesforce record ID for this API identity.
When evaluating a deployment, inspect both the relationship chain and column paths. baseObject, relationship, and table connect the definition to object metadata; field identifies field dependencies, including those reached through lookup paths.
Before replacing or retiring a report type, identify incoming report and translation references. Reports identify their type through reportType or reportTypeApiName; translations can identify it through name. Shared object names alone do not establish which reports use a particular report type. Likewise, the report type's available-column layout does not show which columns those reports actually select.
For a GroupMember-based deployment that fails with a table-path error, compare the failing column's table value with the reported case under Reported Issues. That case involved GroupMember-QueuePublicGroupMembership, rather than a general failure to deploy custom report types.
Relationships
Outgoing references identify object and field dependencies. Incoming references help identify reports and translations affected by replacement or retirement. Relationship paths can carry dependencies that are not visible from the primary object alone.
References
-
CustomObject:baseObject,relationshipwithinjoin, andtablewithinsections.columns. -
CustomField:fieldwithinsections.columns, including dependencies expressed through relationship paths.
Referenced By
-
Report:reportType,reportTypeApiName. -
Translations:name.
Reported Issues
-
A Group Member report type can fail deployment with a table-path error. In November 2023, a scratch-org-to-scratch-org deployment using
baseObject=GroupMemberand columntable=GroupMember-QueuePublicGroupMembershipreportedly failed with "Could not find table for path, known paths are [GroupMember]". The answer connected the failure to known issue W-14225126 and suggested manual recreation at the time. The discussion does not establish the current fix status or whether manual recreation remains necessary. See the Group Member deployment discussion. -
A missing entry in the org browser may call for a direct metadata retrieval. In January 2023, a user reported that newly created custom report types did not appear under
ReportTypein the Visual Studio Code org browser. The accepted answer suggested retrieving theReportTypemetadata type directly. See the retrieval discussion. -
An object-impact inventory can miss lookup dependencies and inaccessible reports. A 2018 answer described retrieving report types, walking
baseObjectand recursivejoindefinitions, and correlating reports through their report type. It explicitly limited that analysis to primary and joined objects, excluding fields added through lookups, and noted that reports in other users' private folders would not appear in the querying user's report list. See the object-based report inventory discussion. - A custom report type based on Reports was reported as a declarative usage-inventory option. In 2021, an accepted answer suggested using Reports as the primary object, then displaying or grouping reports by Report Type. This was offered as an alternative to checking each report individually. See the report-type usage discussion.
-
A report-of-reports inventory may not expose standard report types as expected. In April 2026, a user investigating the standard "Opportunities with Payments" report type reported that the Report Type field appeared to show only custom report types. An answer suggested the Reports and Dashboards API report-types list as an alternative way to obtain labels and API names. This is a reported inventory limitation, not proof that standard report types are custom
ReportTypemetadata assets. See the standard report type inventory discussion.
Common Questions
How do I retrieve all custom report types?
Use ReportType with the * member in package.xml. In Metadata API format, the definitions are individual .reportType files in the reportTypes directory.
Can I change a custom report type's primary object?
No. baseObject cannot be changed after creation. Changing the primary object is not an in-place update, so evaluate incoming report and translation references when planning a replacement.
Why does my report type exclude Accounts without Contacts?
A Contacts relationship with outerJoin=false requires a matching Contact. An outer join can retain Accounts without Contacts. The full chain must also obey the rule that an inner join cannot follow an outer join.
Does checkedByDefault=false remove a field from the report type?
No. It leaves the column available but not selected by default. The available-column layout also does not establish which fields existing reports select.
How do I find reports that use a custom report type?
Inspect reports' reportType or reportTypeApiName references rather than matching object names. A custom report type based on Reports has also been reported as a way to display or group reports by Report Type, subject to inventory coverage limitations.