-
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

Quickbooks and Salesforce Integration: Rest API
In today’s business landscape, seamless integration between different software systems is essential for maximizing productivity and efficiency. When it comes to managing financial data and…

Data Migration and Transformation: Ensuring a Smooth Salesforce Implementation
Data migration and transformation play a fundamental role in ensuring a smooth transition to a new system during a Salesforce implementation service. These essential components…
Popular Salesforce Videos
Salesforce Developers Innovate From Anywhere
Hear from Developer Trailblazers to learn how they’ve been innovating from anywhere and making magic happen for their users with Salesforce. With Salesforce, Developers can…
Salesforce DX simplified with AutoRABIT - Bay Area Salesforce Developer Group
A common need that teams developing on the Salesforce platform express is the desire for a single solution that will take their developers through the…
The Power Of Displaying Salesforce Data in Google Maps
Ever wondered where on earth your Leads are? Or your customers and prospects for that matter? Well here’s the way to find out. Display your…