Questions tagged [accountcontactrelation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
37 views

Stop isDirect = True when creating an Contact from the Account's Contact related list

I observed that when creating a Contact from an Account's Contact's related list, it's automatically set as isDirect=True (easier to see this when viewing an Account record in Salesforce Classic). The ...
ash's user avatar
  • 1
0 votes
0 answers
144 views

How to displays results for contacts which have ACR in the search

We have enabled ACR (accountcontactrelation) in our Salesforce Org to stop duplication of contacts. When a user types in the contact details (name , email) in the search bar there is ability to hover ...
Masond3's user avatar
  • 419
0 votes
1 answer
113 views

wrote a trigger on Contact object which will help to update the count of Primary Contact in Account object which is not working on Update scenario

I wrote a trigger which will count the no of primary contacts associated to an account which is working for insert, delete events but not when I update a contact's Primary checkbox from True to False ...
Aritra Dasgupta's user avatar
0 votes
1 answer
209 views

CANNOT_REPARENT_RECORD when updating Contact's AccountId in flow

I have a flow that, in the end, updates AccountId to empty string and it was working fine but now is giving me the following error: CANNOT_REPARENT_RECORD: Before you can make this contact private, ...
molinet's user avatar
  • 895
1 vote
1 answer
2k views

Best Practice for converting Contacts to Person Accounts?

I need to enable Person Accounts in an org that already has plenty of Accounts and Contacts. I see a lot of documentation and blog posts about how to convert Business Accounts to Person Accounts, but ...
AM-KA's user avatar
  • 13
0 votes
1 answer
742 views

AccountContactRelation: making AccountId and ContactId Updateable

we use Talend to upsert a bunch of Accounts and Contacts(from the old archive) each night. Now im trying to also upsert the Account-Contact Relation. Sadly my Talent Job always gives me this error: &...
Alex's user avatar
  • 3
-1 votes
1 answer
249 views

Subscriber key related to email address and Contact Key related to Contact ID

My company has created Data extensions in Marketing Cloud using the email address as related to Subscriber Key. We have recently acquire Salesforce CRM and decide to synchronise some objects (Users, ...
Lise's user avatar
  • 3
0 votes
1 answer
70 views

How to write a trigger when you update an account , set its BillingCountry as a concatenation of all its related Contact's mailingCountry?

I wrote the following code but I am unsure of my solution trigger myTrigger on Account(before update){ Map<Id,Account> accMap = new Map<Id,Account>(); for(Account a : Trigger.new){ ...
Amax1's user avatar
  • 109
1 vote
1 answer
505 views

How to identify and delete a Contact who has moved from "Account A" To Account "B" & Delete "Account A" from AccountContactRelation object

I need some advice In our SF org we have enabled AccountContactRelation feature (which allows a contact to be linked to multiple accounts) What i have found is, when "Contact 123" is moved ...
Masond3's user avatar
  • 419
0 votes
0 answers
281 views

AccountContactRelation update delay

I am using the REST api to create Accounts and Contacts, I am also using it to update the AccountContactRelations between them (the Roles field) I have a flow where I need to set roles on an ...
Bentaye's user avatar
  • 101
0 votes
0 answers
443 views

Insufficient Privilege on id:[] accountcontactrelation create record failed

Context Account read privilege is at user level Sharing rule allows Users to see other User's Account records, Read privilege only. An LWc on a Visualforce Page allows a user to perform some business ...
BeginnerArtist's user avatar
0 votes
0 answers
386 views

Alternative of contact to contact relation usecase in salesforce

I have a business case wherein I have to create a contact-to-contact relationship. here is the usecase in a diagram I could think of only the below options to resolve this issue. option 1. Convert ...
Hunt's user avatar
  • 245
0 votes
1 answer
235 views

Debug log for AccountContactRelation trigger doesn't show up on after delete

I have a trigger on AccountContactRelation object, which tracks after update and after delete events. When I update ACR record - I see the log on the after update trigger transaction. But when I ...
Duck The Developer's user avatar
0 votes
1 answer
388 views

How can i add Account on AccountContactRelation based on AccountHierarchy using Apex trigger?

My goal : When creating new contact and we assign it to specific account , the Account should have specific role [![enter image description here][1]][1] when creating new Relationship , the new ...
Farkous's user avatar
  • 27
-1 votes
1 answer
263 views

Many to Many Relationship - AccountContact Relationship

I have enabled Account Contact Relationship to use a "many to many" relationship which is working. But, getting an error "This contact already has a relationship with this account."...
Abhinav's user avatar
0 votes
1 answer
206 views

Unable to create Master-Detail relationship where AccountContactRelation is the master

Im creating a master-detail field on a custom object I just created and I was wondering why this standard object (AccountContactRelation) does not appear when I want to select it as the Master... Thx ...
Gatosaurio's user avatar
0 votes
1 answer
2k views

Mass Delete AccountContact Relationship Record

I have activated the AccountContactRelationship object. One particular contact is related to 800 Accounts. This is causing issues when we Update records from Dataloader or any other ETL tool. How can ...
GroundToCloud's user avatar
2 votes
3 answers
7k views

How to avoid "insufficient access rights on cross-reference id" error when inserting a master detail child of Contact by a Community User?

I have a custom object, Ticket__c, that has a master detail field to Contact. I have a Digital Experience accessed by "Customer Community" licensed users. One of the pages provides access to ...
Phil W's user avatar
  • 35.5k
0 votes
1 answer
995 views

AccountContactRelation and child custom objects. Sharing behavior

I'm using AccountContactRelation to give access to some accounts to my community users. It's working great in this regard. but the thing is, i got a custom "Contrat" object that is a child ...
Julien Souchi's user avatar
0 votes
0 answers
599 views

How to create an individual account for an existing household account?

How can I add an individual account to an existing Household Account? I tried to create an individual Account + Contact and link them together (Household>Contact>Individual) but I am stopped by ...
DylanSalesForceful's user avatar
1 vote
1 answer
2k views

SOQL To Get Opportunity, Account and Contact from one query to Opportunity Object

I'm wondering if it is possible to query the Opportunities object and return associated Account and Contact data. I so far have: SELECT Opportunity.Id, Opportunity.AccountId, Opportunity.Owner.Name, ...
qotsa42's user avatar
  • 13
1 vote
1 answer
636 views

Error: The Entity 'AccountContactRelation' is not found. Contact the vendor for more details

Running into the following error when trying to create a package that has a dependency on a "parent" package: The Entity 'AccountContactRelation' is not found. Contact the vendor for more ...
Lucas Calegari's user avatar
0 votes
1 answer
589 views

SOQL query to get both direct and indirect contacts on an account?

Looking at expanding this trigger to auto add all related contacts, not just those directly related. Having a tough time figuring this one out. trigger InsertAccountContactsToOpportunityContactRole on ...
Erik's user avatar
  • 5
1 vote
2 answers
2k views

SOQL to obtain Account Name of indirect AccountContactRelation

I'm having trouble creating a valid SOQL query. In one query I'd like to obtain fields from Contact, Account and AccountContactRelation. It is for an Apex-backed Lightning Web Component that displays ...
skycafe's user avatar
  • 397
0 votes
1 answer
3k views

Create Account Contact Relationship using AccountContactRelation object in Apex

I'm trying to create a relationship between Person Account and Contact. I'm doing it in Apex and using AccountContactRelation(ACR) object. I'm taking information from the Order and want to assign it ...
Lukas's user avatar
  • 3
4 votes
1 answer
710 views

How to grant public visibility to all Contacts with private Accounts?

We want to activate Contact to Multiple Accounts but we have Accounts and Contacts visibility as private. If we activate this functionallity an User can't view all Contacts to relate them to an ...
Wyrncael's user avatar
  • 267
0 votes
0 answers
121 views

Dealing with failed records in an Upsert operation

With the help of responses to my previous posts I was finally successful in Upserting Contacts in Salesforce via Jitterbit using External Id. However two records failed. I am thinking these failed ...
GroundToCloud's user avatar
2 votes
1 answer
1k views

Financial Services Cloud Unit Testing - Inserting AccountContactRelation Fails

I am trying to create a unit test in Financial Services Cloud that tests operations on Household Roles. The org uses Person Accounts. Whenever I try and insert an AccountContactRelation with the ...
user3900604's user avatar
0 votes
1 answer
120 views

Issue with Multiple contacts with multiple accounts in my saleforce org. How to avoid it?

I have a quick question, I have multiple contacts ( for the same person ) and those contacts are associated to multiple accounts. This is what I want to achieve...one contact should be associate to ...
user74512's user avatar
1 vote
1 answer
226 views

Existing code for AccountContactRelations, now has errors [duplicate]

I have an existing piece of code that looks for geolocation for existing leads. for (Lead l : leads) { System.debug(l.Id); // Check if Lead was created or Updated for IC_Campaign_Eligible__c ...
SeanGorman's user avatar
  • 1,015
0 votes
1 answer
2k views

Didn't understand relationship 'AccountContactRelation' in FROM part of query call

I'm getting the following error message: System.QueryException: Didn't understand relationship 'AccountContactRelation' in FROM part of query call. If you are attempting to use a custom ...
sfdcadmdev's user avatar
2 votes
0 answers
748 views

How to update primary contact value for related tab in Accounts object?

I hope you can help with the following. I'm new to Apex (<1mth) and not sure if a Trigger should be used or process builder instead to have the primary contact update and displayed in the related ...
MoonBoots's user avatar
2 votes
1 answer
2k views

How to Delete AccountContactRelation Record with SOAP API Call?

We are planning to deepen out integration between Salesforce and a third-party tool. Within the tool we have multiple accounts related to one contact. To replicate the relations between these contacts ...
Dbb's user avatar
  • 21
0 votes
0 answers
765 views

Validation rule on Account Contact Relationship object

Can anyone please let me know how to write a validation rule on Account Contact Relationship object to hold only one primary role, contact to an Account
user5558's user avatar
  • 103
0 votes
1 answer
383 views

What is the difference between ContactID and PersonAccountID

We have person Account enabled in our org and we would like to have Salesforce as the customer master DB. We thought of using one identifier across all the systems in our organisation. The previous ...
user2014250's user avatar
2 votes
0 answers
429 views

using AccountContactRelation in apex

I want to use AccountContactRelation in Apex but get an error message when I try to run the code. For example when I try to run this code on Workbench: AccountContactRelation[] ACRs = new list<...
Alon's user avatar
  • 21
0 votes
1 answer
1k views

Selecting opportunity contact role on related contact account

Part of our process before an opportunity is closed won, we need to create contact roles, until now if a contact is related to 2 different companies we create both accounts and we duplicate the ...
manza's user avatar
  • 1,953
2 votes
3 answers
25k views

SOQL query to display number of opportunities, number of contacts, from account?

Can someone please confirm if it's possible to fetch the enumber of opportunities, and the number of contacts, for an account? as count() can only be used for root queries so the below query is not ...
gs650x's user avatar
  • 2,650
1 vote
1 answer
2k views

Account Contact Relationship : Can we select Indirect Contacts in Account Contact Relation for case

Consider a given scenario where Case is assigned to an account ABC ABC is parent which has child as A,B, C Account Contact relationship object has below 4 records Contact Tom Account ABC Contact Kim ...
Vishal Nayak's user avatar
0 votes
1 answer
2k views

How to populate Contact info to Case object when Account Lookup field is selected in Case

Scenario: A new Account Lookup field is created and on the Case object. then, once an Account is selected and saved – The Primary’ Contact name and email-address associated with the Account should ...
Abe Landing's user avatar
8 votes
3 answers
3k views

Uses for AccountContactRole vs AccountContactRelationship - pros and cons?

I'm having trouble wording this question, so please forgive if I don't do it well: I'm trying to evaluate the uses of AccountContactRole vs AccountContactRelationship, and I've made a list of pros ...
DavidSchach's user avatar
  • 5,874
0 votes
1 answer
264 views

AccountContactRelation SOQL returning null with dynamic filter values

I am trying to fetch AccountContactRelation recordsrelated to specific accountId from Lightning component via server side call. I am passing the AccountId as a param to the apex controller. But ...
consultantsfdc's user avatar
-2 votes
1 answer
3k views

How to Update AccountContactRelation table of a Contact

I am trying to update a Contact's(Primary) AccountContactRelation object with a list of Accounts that are from a list of selected Contacts(accounts tied to them). Here is my approach: public Contact ...
Arnold Jr.'s user avatar
  • 1,521
4 votes
1 answer
564 views

How to Use Roles field filter for AccountContactRelations in Visual flow?

We are looking to migrate to the new AccountContactRelations. One process we need, is to query for a contact relationship with the account, where it's role is a specific value. When running Visual ...
Saariko's user avatar
  • 5,600
0 votes
2 answers
3k views

Can I modify the AccountContactRelations from the contact page?

We are launching the AccountContactRelations in our org (mainly because it's better and triggerable) Is there a way to manage/update the roles from within the Contact Edit page? So, when I create a ...
Saariko's user avatar
  • 5,600
3 votes
0 answers
353 views

Multiple-Account Contacts vs Duplicate Contacts

I have a client who wants to support multiple accounts per contact (right now the contacts are just duplicated for multiple accounts) While salesforce supports this feature out of the box, I have ...
NSjonas's user avatar
  • 10.1k
1 vote
1 answer
2k views

How can I add an additional lookup field to Account Contact Relationship object

We've historically had a custom "third party relationship" object in our Org to handle scenarios where a Contact belongs to one Account, but has a relationship with another Account (or child record ...
Rob Cowell's user avatar
0 votes
0 answers
570 views

Accountshare record automatic deletion

We have a trigger on accountcontactrelationship object which inserts an accountshare record as our account object is private. Accountshare record is inserted based on the accountcontactrelationship ...
user27749's user avatar
  • 484
0 votes
0 answers
225 views

Update Parent account in Account lookup on account contact relationship object

As per my company business process we have all customer account as per Geo location. Parent account will be head office and branch offices are child accounts. Now, our requirement is all contact ...
Russel baker 1's user avatar
0 votes
1 answer
153 views

Read and update database with REST api MobilePush

I am using Salesforce Marketing Cloud. I would like to use REST api to read data in MobilePush's database, and update the record in database. I read a document in: https://developer.salesforce.com/...
Ponpirat's user avatar