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
Alvin Dutt 6Alvin Dutt 6 

Show Custom Object On Leads Page

I have created a custom object, My question is how can I show that custom object in the Leads Page

for example I would want to show the custom object in that block highlighted with red along with the Activity History

I am new to Salesforce 
User-added image
Later I will add to data to the custom object using my own API 
NagendraNagendra (Salesforce Developers) 
Hi Alvin,

Assuming you have a lookup relation from Lead to Custom Object and also a lookup from Custom Object to Lead (creating your many-to-many), then this will work fine.

Try re-creating your lookup relationship from Lead to Custom Object. Then make sure that you add the related list and add to the page layouts in steps 5 & 6:
  • Step 5. Add reference field to Page Layouts (Yes to All)
  • Step 6. Add custom related lists (Yes)
Please let us know if this helps.

Regards,
Nagendra.
Alvin Dutt 6Alvin Dutt 6
Hi Nagendra 

I tried it worked thanks

It will work similar for Contacts if I want to do the same
Alvin Dutt 6Alvin Dutt 6
Hi Nagendra 

Is it possible to add a custom object from a REST API?