-
How to store list of contacts in Salesforce associated to a particular account using Map?
Can you please tell me the query how to store a list of contact associated with an account using Map
Iam using this below query
Map FinalMap=new Map[(Select id,(Select lastname from contacts) from account)];Throughing errror you cannot store two sobject on a map
Log In to reply.
Popular Salesforce Blogs

WordPress and Salesforce Integration - What You Should Know
Organizations that want to improve the way they deliver digital assets to their audiences would benefit from using WordPress together with Salesforce. When you deliver…

Master-Detail Relationship in Salesforce
Master-Detail relationship in Salesforce means a parent-child relationship between any two objects in which the parent object controls some certain behaviour of detail object i.e.…

Salesforce Editions Comparison: Choosing the Right Edition for Your Business
A Detailed Walkthrough of Salesforce Editions Comparison Salesforce offers multiple CRM editions like Essentials, Professional, Enterprise, and Unlimited – each of these Salesforce editions are…
Popular Salesforce Videos
Salesforce - The Ultimate Career Booster | Salesforce Tutorials For Beginners
This Salesforce Training Webinar will help you understand how Salesforce is the ultimate career booster for IT, Sales and Marketing. You will learn the Roadmap…
What is Salesforce Labs?
Free. Open Source. Solutions by Salesforce Employees. From bots to dashboard packs and beyond, Salesforce Labs has something to fit all your business needs. Watch…
Methods in Salesforce - All You Need to Know
Learn All About Methods in Salesforce. Watch this video and do let us know if you have any doubts or concerns. What is a Method…