-
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
Right Salesforce Partner Help You to Grow Your Business with Technology
As we all are familiar with, consulting firms have become the most reliable method for everyone to get their jobs done quickly. Just throw a little…
Parsing out an Email Subject in email-to-case using RegEx for EXACT matching
Salesforce's On-Demand Email Handler Service can be further enhanced using a case trigger to better identify the type of case that is being created. Inherently…
Process Builder in Salesforce - Here's What You Need to Know
Process Builder is tool used for automation, it is a part of Salesforce flow, it even helps to automate business process. The build process builder…
Popular Salesforce Videos
Salesforce Interview Questions and Answers | 70 Salesforce Interview Questions for the Beginners
In this video, Interesting data explains 70 Salesforce Interview Questions for Beginners. All the interview questions have been divided into the following important areas of…
Batch Apex In Salesforce | Asynchronous Apex
Asynchronous Apex 1. Batch Apex 2. How to run Batch Apex class 3. Monitor Batch Apex class 4. Examples 5. Points To Remember Upcoming Video…
How to Nurture Leads in Salesforce Account Engagement? | Forms
Discover how Salesforce Account Engagement (also known as Pardot) helps you create and embed personalized forms, enhancing the lead nurturing experience. To show its capabilities,…