Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How does the class map perform?

Asked by Danna Sahi Aug 18, 2023 940 views 1 answer
Share

About this question

 Map acctsWithOpps = new Map(

    [SELECT Id,(SELECT Id FROM Opportunities) FROM Account WHERE Id IN :Trigger.New]);

I am getting this code when I am trying to learn Triggers. Can I get any explanation regarding this code? 

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.