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
Akanksha CullenAkanksha Cullen 

Fetching and Displaying Details of Parent Object in Child's Tab (Salesforce Default UI)

Hello, 

I have a Master - Detail Relationship between two objects, say, Tasks__c and Projects__c. Each Project is supposed bto have a few tasks. So when I display the instances of the tasks in the Tasks tab, I also want to display the details of the project it is related to. Right now, I am able to display the Project__c id, i.e., the index field, but not the name of the project or any other detail. A screenshot of the current Tab is attached below. Please help!!

PS: This is a very basic thing which I can easily do in a custom visualforce page. Calling this feild name  : Project__r.Project_Name__c.
But, how do I display this field in Salesforce defined detailed page. 
User-added image

I want to show the Project Name here as well.
Best Answer chosen by Akanksha Cullen
PrakashbPrakashb
Hi Akanksha,

You can create a formula field in the Tasks__c object and use the same formula you have mentioned to get the project details.

Regards,
Prakash B

All Answers

PrakashbPrakashb
Hi Akanksha,

You can create a formula field in the Tasks__c object and use the same formula you have mentioned to get the project details.

Regards,
Prakash B
This was selected as the best answer
Himanshu ParasharHimanshu Parashar
HI Akanksha,

Try to create a formula field (text type) on your Task object
2. Click insert field button as shown in below screenshot in background.
3. Select Parent object name as Project as I have done in second table in below screenshot. (Campsite.)
4. Select Parent object field from next column.

User-added image


Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant

P.S.  If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
 
Akanksha CullenAkanksha Cullen

@Prakashb: Haha! Nice workaround! Thank you :D 

@Himanshu: Yeah, I got that from Prakash's answer. Thank you so much! ^_^