Sub topic 3
Making a Custom Report Type Available
Assume you understand Salesforce objects, fields, relationships, and the Lightning report builder. A custom report type is usable only when its deployment status, permissions, and data access allow it.
Deployment status and access
A custom report type has two important statuses:
- In Development: Use this while designing. It is generally available only to administrators or users with permission to manage custom report types.
- Deployed: Make this status available after testing. Users can select the report type when they have access to the relevant report features, folders, objects, and fields.
Deployment status does not grant data access. It only controls whether the report type is ready for normal reporting.
Permissions, field-level security, and sharing
Report results are filtered by several layers:
- The report type determines which objects, relationships, and fields are available.
- Field-level security controls whether a user can see each field.
- Object permissions control whether the user can read the records.
- Sharing rules, role hierarchy, teams, and other sharing settings control which records the user can access.
- The report folder controls who can open or edit the report.
A field can appear in the report type but remain unavailable to a user because field-level security hides it. Sharing can also produce an apparently empty report even when matching records exist.
Formats, cross filters, and buckets
The report type provides the data structure. The report format controls presentation, such as tabular, summary, matrix, or joined reports. A cross filter narrows records by the presence or absence of related records. For example, an Accounts report can use a cross filter for Accounts without Contacts.
A bucket field groups values into report-only categories. It does not change the underlying data or require a new Salesforce field. Check that the selected report type exposes the objects needed by the cross filter.
Metadata deployment
Report types are metadata and can move between orgs with deployment tools. Review the XML definition, including the primary object, related objects, outer joins, field sections, label, and deployment status. Deploy to a sandbox first, test dependent reports, then deploy to production.
<deployed>true</deployed>
<status>Deployed</status>Use the metadata format supported by your Salesforce deployment tool. Do not assume that a report type’s XML alone includes the reports that use it.
Changes, retirement, and troubleshooting
Changing relationships or removing fields can break report filters, columns, and dashboards. Clone a report type when users need a different structure. Keep the original when existing reports depend on it.
To retire a type, remove it from normal use, assess dependent reports and dashboards, and preserve a replacement plan. Avoid deleting metadata before confirming that no business process depends on it.
For an empty report, check the primary object, join type, filters, deployment status, object permissions, field-level security, sharing, and report folder access. Then test with a known record that should match.
Exercise
A deployed Accounts with Contacts report is empty for one user but not for an administrator. What should you check first?
Show answer
Check the user’s object permissions, sharing access to Account and Contact records, report folder access, and any filters. Also confirm that required fields are visible through field-level security.