-
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
5 Questions to Help Decide If a Salesforce Certification Is for You
Salesforce is used in nearly every industry and countless companies today, and its reach continues to expand. Salesforce dominates because the Customer Relationship Management (CRM)…
Salesforce Lightning Experience: Tools for Transitioning from Salesforce Classic to Lightning
Introduction January 7, 2020: The date when good news finally arrived from Salesforce to its users that the company is auto activating Salesforce Lighting Experience…
All You Need To Know About Salesforce & Quip Integration
When Salesforce bought Quip in 2016, users have been waiting for software upgrades that will boost collaborative and productive possibilities. Fortunately, these big integrations were…
Popular Salesforce Videos
Custom Aura Feed Component | forceChatter:feed | Chatter in #Salesforce | Salesforce Tutorials
In this vlog I will create a custom aura feed component with two picklists to select Group and then based on the Group selection, select…
MuleSoft Integration: Salesforce Event with AWS MySQL Database
Learn how to integrate Salesforce Event with AWS MySQL Database using MuleSoft. The video will cover these four points - 1. Introduction Integrating Salesforce and…
What is Approval Process in Salesforce?
Automated process that approves records for the organization and it can be defined with a sequence of steps. Watch the video to learn and if…