-
Fetch account details using "AccountContactRelation" junction object in Salesforce
Hi,
I am stuck with a problem here.
I have enabled multiple Accounts to Contact in my Salesforce org. This creates a junction object called AccountContactRelation.
I need to write a query which would fetch the account details like Account id, name, record type of the Accounts linked to a Contact.
Condition is, only those account details should be fetched where the contact has more than one account linked to it.
Can someone please help. It is urgent
Thanks!
Log In to reply.
Popular Salesforce Blogs
Powering Real-Time Two-Way Synchronization Between Salesforce and Jira
In today’s business environment, efficient data management is crucial for any successful company, and CRM systems have become essential tools among businesses of all sizes.…
The Fall of the Third Party Cookie: Here’s What Salesforce Pardot Users Need to Know
Marketers rely on cookies (the kind you cannot eat) to track visitor data and personalize marketing efforts. And like Cookie Monster love them. Google’s recent…
Brave Your Business Challenges With Salesforce
As any business grows, it faces a plethora of challenges along the way. To keep up with the cut-throat market competition, it is extremely important…
Popular Salesforce Videos
Learning Path and Pay Scale for Salesforce Profiles
Now it's high time to know about the Learning Path for the different Salesforce profiles. In this video, you also got to know about the…
When to Use Apex? | Flows of Action in Apex | Learn Salesforce Development
In this Video Shrey explained When to use Apex and Flows of Action in APEX. Let's Learn the End User and Developer action (Flows of…
What is APEX Trigger in Salesforce? | Salesforce Learning
Apex can be invoked by using triggers. Apex triggers enable you to perform custom actions before or after changes to Salesforce records, such as insertions,…