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
subbaiah Godenasubbaiah Godena 

Count The Related Records

I have two objects A and B, object A records related to B records,which i want display the count of that related records?
Best Answer chosen by subbaiah Godena

All Answers

Marcilio SouzaMarcilio Souza
This was selected as the best answer
Vasani ParthVasani Parth
Subbaiah - Welcome to this vibrant Salesforce developer community.

You can create a master detail relationship and than on master create a roll up summary field of child with count. 
VineetKumarVineetKumar
Gabriel VigoritoGabriel Vigorito
hey guys, i have 2 objectcs, Opportunity and Deals, i need to count the number of deal that Opp Have, i cant use a roll up or a trigger, what can i do?
naveen singh 42naveen singh 42
Hi @Gabriel, You can achieve this by creating Lightning Flows.User-added image
SolidifySolidify
@naveen Singh 42 - Can you specify the conditions you set for this lightning flow?