-
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
Which Salesforce Tool Should You Be Using? Sales Cloud vs. Service Cloud
You have offered two module alternatives when you join up for Salesforce: Sales Cloud or Service Cloud. Generally speaking, users in Service Cloud are focused…
Standard and Custom Percentage Calculator in Salesforce Lightning Component
Requirement We are going to calculate some standard percentage and custom percentage i.e. any percent you want to calculate any input number. On click of…
What is the Non-Profit Success Pack in Salesforce?
The Salesforce Non-Profit Success Pack (NPSP) is a free solution available to nonprofits through the Salesforce AppExchange. It was created to help nonprofits use CRM…
Popular Salesforce Videos
An Introduction to Salesforce org Nonprofit Cloud
Did you know that over 30,000 nonprofit organizations use Salesforce? Salesforce.org’s premier product, NPSP, helps nonprofits drive greater impact by connecting everything they do. Learn…
How to Choose Salesforce Career Path | How To Start a Salesforce Career
With most of the businesses using Salesforce finding access to talent to be a ‘critical challenge’, it’s no wonder so many people are choosing a…
Salesforce Anywhere: Technology Enabling the All-Digital, Work-From-Anywhere World
While companies, governments and organizations are slowly returning to their offices, the COVID-19 pandemic has changed the future of work forever. In fact, nearly 70…