function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sanjusfdcsanjusfdc 

How to add field in report which is not present in particular object and present in another object. How to map that field like can we create formula field or what?

How to add field in report which is not present in particular object and present in another object. How to map that field like can we create formula field or what?
AnudeepAnudeep (Salesforce Developers) 
Hi Sanju, 

You can do it as long as the objects are related. I recommend looking at custom report types where you can include the related fields

Note that the Formula field is good if you try to display the parent's information on the child object or try to achieve some calculation or you want to put information combining different field values.

Now, if you try to display a child's information on Parent then the formula field will not work.

So, if we achieve results from our relationship fields then it is not advisable to create duplicate formula fields just to show the related record information.

If you have custom objects, then Salesforce cannot provide standard report type for your relationship. That's why you need to create custom report type and define how you could create reports based on that.

For more information, refer to Set Up a Custom Report Type to learn more

Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you