-
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 Salesforce?
What is Salesforce? Salesforce is a cloud-based Customer Relationship Management (CRM) software that makes solutions available for sales, service, marketing, collaboration, analytics, and building custom…

What is Schema Builder in Salesforce? | All You Need to Know
Schema Builder is a graphical tool in Salesforce that allows you to create, modify, and visualize data models of your Salesforce organization. It provides an…

10 Reasons You Need a Salesforce Support and Maintenance Partner in 2021
The secret behind the selection of Salesforce maintenance for supervising the marketing processes lies since it assists in improving the business continuously and manages the customer's contentment efficiently. Support…
Popular Salesforce Videos
Salesforce Einstein Analytics for Developers
Einstein Analytics is the Salesforce-native analytics platform, providing users with insights into their business. This session dives into topics including APIs, metadata, packaging, and other…
How to Create Bulk Custom Fields in Salesforce using BOFC App | Salesforce | BOFC | AppExchange
Want to perform multiple operations? This quick video walks you through how to create mass custom fields of any type (Master Detail, Lookup, Formula, Primitive…
What are the Objects in Salesforce?
What is the difference between Profile Vs Permission Set? Salesforce Interview Questions and Answers by CRS Info Solutions. Watch this video to learn more. Read…