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
Pratik AtkarePratik Atkare 

not getting how to complete this

Create two custom object “Merchant Account” and “Customer Account”. These two objects should be relatable to opportunity object. There is a count field and it should display the total number of opportunities they have.
 
AnudeepAnudeep (Salesforce Developers) 
Hi Pratik,

You can create a junction object between “Merchant Account”, “Customer Account” and Opportunity.

Master-Detail between Merchant Account (Master) and Opportunity (Detail) and Master-Detail between Customer Account (Master) and Opportunity (Detail)

Once you have the relationship setup you will be able to create a roll up summary field on both Merchant Account and Customer Account that displays total number of opportunities

If this information is helpful, please select this answer as best. It may help others in the future. Thank You!

​​​​​​​Anudeep
viswanath reddy 53viswanath reddy 53
HI Pratik Atkare ,

It looks like our team of experts can help you resolve this ticket.
We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!

https://jbshelpdesk.secure.force.com

Thanks,
Jarvis SFDC team