-
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
Open Web Application Security Project | Salesforce Security Guide
Why Is OWASP Important to You? OWASP represents the Open Web Application Security Project. This open-source project gets the news out about application security weaknesses,…
Reimagine your Sales with new Salesforce Sales Cloud Spring ‘20 Features
Salesforce has always packed loads of pleasant surprises in their Sales Cloud Spring Releases, and as is the norm, it happened this year too. This…
Popular Salesforce Videos
The Future of Salesforce Security and Authentication
Learn how to enable the best security in a way that will have your users thanking you. Be the first to learn about the next-gen…
myTrailhead Product Filters | Salesforce Tutorial Video
Salesforce myTrailhead has now released their next update in product filters. You can now create your own product filters that are relevant to your business…
How to Become a Salesforce Consultant at Any Age
Companies are in great demand of skilled Salesforce consultants as a means to achieve their Salesforce objectives for better output in their business. With the…