How to Create Custom Report Type in Salesforce

I was working in Salesforce Service Cloud, and customers were sending many cases about problems with different products. The support team wanted to see which case belonged to which product in one report.

However, Salesforce did not provide a standard report that shows Cases along with their associated Products in a single view.

To solve this, I created a custom report type that combined Cases and Product. This allowed the support team to generate a single report showing Case details, client information, Product name, Case status, and other important fields.

In this Salesforce tutorial, we will learn to create custom report types in Salesforce Lightning and Salesforce Classic.

Custom Report Type in Salesforce

In Salesforce, using Custom Report Type, we can create reports that we cannot with the standard report types. When these Standard report types do not meet our requirements, we create custom report types.

Custom Report Types enable us to define relationships between primary and secondary objects, which allows us to access fields from both objects in a single report.

We can build custom report types that include relationships between two or more objects in a single report type, for example, Accounts with leads, or Opportunities with Accounts and Contacts.

Create Custom Report Type in Salesforce Lightning

  1. On the Setup page of Salesforce Lightning, click on the Quick Find box and then search Report Types from the options, and under the section Report & Dashboards, select the report types.
Create Report Type in Salesforce
  1. Now, on the Custom Report Types page, click the Continue button.
Create Report Type in Salesforce Lightning
  1. In this step, click on the New Custom Report Type button to create a new report type.
Salesforce Create custom Record Type
  1. In this Step, we will define the custom report type by entering the required fields.
  • In the field of Primary Object, select the object that you want to keep as primary.
    • For example, if you are creating a custom report type with two objects, like Contacts with Leads, then select Contacts as the primary object.
  • In the Report Type Label, provide the name of the report type. I have labeled this report type as Contact Details, and as we enter this field, it will auto-fill the Report type Name field.
  • In the Description field, write the description regarding the custom report type.
  • In the field Store in Category, select the category related to the custom report type. Since I’m creating a custom report type on Contacts, I have chosen Accounts and Contacts as a category.
  • In Deployment Status, activate the “In developmentcheckbox. With Development status, this report type will be visible only to authorized administrators and their delegates. “Choose deployed when you are ready to let all users access this report type “.
  • Lastly, click on the Next button.
Custom Report type in Salesforce
  1. Now, we will define the report type. I have created this custom report type for Contacts only, so Contacts are the primary object, and I will click “Save ” to proceed.
    • If I had created a report for Contacts with leads or Contacts with opportunities, I would have to select another object by clicking the click to relate to another object option.
Define Custom Report types in Salesforce Classic
  1. In case you have clicked on Relate Another Object to select a secondary object, then in this step, first click on “Select Object, and in the list of objects, select the object related to the report.
    • For example, if you are creating a custom report for Contacts with Opportunities, select Opportunities from the objects list.
    • Activate the check box in the A to B Relationship to select whether you want records of the primary object in the related object or not.
    • After making these changes, click on the Save button.
Relative object in a Salesforce Custom Report Type

As we click on the Save button, the New Custom Report Type named Contact Details will be created.

Created Custom Report Type in Salesforce

We have successfully created a custom report type in Salesforce Lightning using the steps above.

Create a Custom Report Type in Salesforce Classic

To create a custom report type in Classic first, we need to log in to the Salesforce account and then follow the steps below.

  1. On the Home page of Salesforce Classic, click on the Setup tab.
Create Report Type in Salesforce Classic
  1. Now, on the Setup page of Salesforce Classic, click on the Quick Find box and search for Report types, and then under the section Create, select Report Types.
Create a Custom Report Type in Salesforce Classic
  1. In this window, we will see the description of Custom Report Types. You can review it to understand the Custom Report Types, then click the Continue button.
Salesforce Classic Create custom Report Type
  1. In this step, we will begin creating a new custom report type. To do so, click the New Custom Report Type button.
Custom Report type in Salesforce Classic
  1. In this step, we will fill in the required details to create a custom report type. We will fill in the details and click the Save button.
Salesforce Classic Custom Report Type
  1. In this report type, we have set Contacts as the primary object, and now we will select another object in relation to it.
    • To select another object, click on the button Click to relate another object.
Custom Report type object relation in Salesforce Classic
  1. Now we need to select an object from the list. Since I am creating this custom report type for Contacts with Opportunities, I have Opportunities set as the second object relative to the primary object, Contacts.
Related Object in Salesforce Custom report type
  1. In this step, activate the check box in the A to B Relationship to select whether you want a related record of the primary object in the related object or not. After choosing the relationship between objects, click on the Save button.
Record sets of Custom Report type in Salesforce

When we click Save, a new custom report type will be created, as shown in the picture below.

Created Custom Report Type in Salesforce Classic

Now we have successfully created a new custom report type, Contacts with Opportunities, in Salesforce Classic.

Conclusion

In this tutorial, we learned how to create a new custom report type in both editions of Salesforce: Salesforce Lightning and Salesforce Classic. We also learned about custom report types and when they are required to create one.

You may like to read:

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.

Salesforce flows complete guide

FREE SALESFORCE FLOW EBOOK

Learn how to work with flows in Salesforce with 5 different real time examples.