Sub topic 10
Deployment Status and Making the Type Available
This chapter assumes you can create a basic custom report type (CRT) and know what a primary object and a field layout are. Here you control who can see the type and when.
The two statuses
Every custom report type has a Deployment Status. It has two values.
- In Development: Only users with the "Manage Custom Report Types" permission can see the type in the report builder. Use this status while you build and test.
- Deployed: Every user who can run reports can choose the type, provided their access to the objects allows it.
You set the status on the report type's setup page, or in the first step of the creation wizard. You can change it at any time.
Why the status matters
A type that is still In Development stays hidden from ordinary users. You can finish the field layout and test the results with a few administrators before anyone sees it. Once you deploy, users can start building reports on it at once.
Moving a type back to In Development has a side effect. Users can no longer pick it for new reports. Existing reports that use it keep working in many cases, but you should confirm this in your org before relying on it. Treat a move back as a change that affects people, not as a private edit.
Availability is more than status
Deployed does not mean everyone sees the type. A user sees a deployed type in the report builder only when all of these are true:
- The user has the "Create and Customize Reports" permission, or can otherwise run and edit reports.
- The user has read access to the primary object.
- For a type with related objects, the user has read access to the objects that make up the join.
Salesforce does not show the user a warning when one of these is missing. The type is absent from the list, or it appears with fewer records than expected. When a user says they cannot find a report type, check these permissions first.
Finding the type in the report builder
Report types are grouped by category, which you chose when you created the type. Standard types such as "Accounts & Contacts" share a category with your custom ones. Pick the category that your users would look in first. A type placed under "Other Reports" is easy to miss.
A learner-friendly checklist for making a type available:
- Confirm the label, description, and category make sense to users.
- Check the field layout, including which fields are selected by default.
- Open the type with a test user who has a typical profile. Create a report and confirm the right records appear.
- Set the status to Deployed.
- Tell the users the type exists and where to find it.
Checking status from metadata
In the Metadata API, the status is the deployed element. The example from the previous chapters includes this line:
<deployed>true</deployed>Setting it to false is the same as In Development. When you move a type between orgs, this value travels with the type. A type deployed with false arrives hidden from normal users, which surprises teams who expect it to be live.
Common errors
| Symptom | Likely cause |
|---|---|
| Type missing for most users | Status is In Development |
| Type missing for one user | No read access to the primary or related object |
| Type appears but lists few records | Sharing or field-level security limits the data |
| Type is hard to find | Category is "Other Reports" or too generic |
Exercise
A new custom report type is built and tested by an administrator. Sales users say they cannot see it in the report builder. The administrator can. Name two things to check.
Show answer
First, check that the Deployment Status is Deployed, because In Development types are visible only to users with "Manage Custom Report Types". Second, check that the sales users' profiles or permission sets give read access to the primary object and any related objects in the type.