-
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
Top Salesforce Consulting Companies for CRM Excellence
Salesforce not only stands tall in the CRM world but is also the go-to for innovation and efficiency. It's not just a platform; it's a…
Salesforce Duplicate Management: Dirty Data Handled Well!
If you have dirty data, your Salesforce Cadillac has the potential to bring your entire organization to a screeching halt. Fabricating business decisions based on…
NetSuite implementation | SixLakes Consulting
Introduction A successful NetSuite implementation is the foundation for building an efficient, data-driven, and scalable business environment. It involves a strategic process of planning, configuration, customization, data…
Popular Salesforce Videos
Top 3 Reasons to Use Salesforce Checkout
Watch this video to understand your Salesforce contract information, make payments, and add additional licenses with Salesforce Checkout. This video discusses about the top 3…
Wow Your Customers with Salesforce Customer 360
Salesforce Customer 360 helps companies unite their teams to deliver amazing wow-worthy experiences beyond customer expectations.
3 Easy to Use Salesforce Field Service Dashboards | AblyPro- Live Webinar
Watch AblyPro's exciting webinar video on Salesforce Field Service Reports & Dashboards. Discover how these powerful tools can drive efficiency and cut support costs for…