-
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

What is CRM? A Beginner's Guide to Customer Relationship Management | Salesforce
What is CRM? CRM stands for Customer Relationship Management. The meaning of CRM has changed a lot over the years. CRM is a term that was initially…

How DemandBlue’s Salesforce Revenue Cloud Implementation Helped its Customers to Enhance Sales Pipeline, Quote-to-cash, and ROI
The B2B buying segment has become more dependent on fast and flexible purchasing options rather than the usual buying process. This applied change is evident…

How to Become a Successful Salesforce Developer: A Comprehensive Guide
Gaining the necessary abilities can lead to a variety of employment prospects in the rapidly expanding field of Salesforce development, as the demand for Salesforce…
Popular Salesforce Videos
Understanding Basics of CRM, Cloud Computing & Salesforce
With cloud computing, businesses access applications via the internet. It's called Software As A Service (or SaaS). Businesses are freed up from having to maintain…
Agile in Salesforce | Agile Salesforce Implementation
Watch this video to learn about Agile Salesforce Implementation When Salesforce met Agile Agile vs Waterfall Introduction to Scrum Scrum Roles Scrum Ceremonies Q&A
15 Things You Didn’t Know About Salesforce
In this video we'll try to answer the following questions: What is Salesforce and why it is used? What is the job of Salesforce developer?…