Questions tagged [merge]
The merge tag has no usage guidance.
165
questions
0
votes
0
answers
17
views
Why is my new active duplicate rule not taking precedence over an older and now deacivated duplicate rule?
I'm attempting to use Contact merge app with the non-profit success pack, however upon using contact merge, duplicate contacts appear with the duplicate rule ID being "Name and DOB check". ...
0
votes
1
answer
87
views
Invoke standard Case Merge action via LWC
Would it be possible to invoke the standard Salesforce Case Merge action from LWC?
Having a new component like say action-form similar to existing record-form component would work well. for example:
&...
0
votes
0
answers
63
views
Identify child records that were re-parented due to Account merge
When an account, Account B gets merged into Account A, the child opportunities are reparented to Account A. I want to identify which opportunities belonged to Account B before the merge. I tried using ...
2
votes
2
answers
110
views
Account.MasterRecordId does not belong to SObject type Account
I constantly get an System.SOBjectException during execution of afterDelete trigger for Account object. This exception is raised when the SObjectUtils.getIdsFromField is invoked. I've just run the ...
2
votes
0
answers
131
views
When merging two contacts in the same campaign with different campaign statuses, which status "wins"?
When two or more contacts belong to the same campaign and are merged in Salesforce, which campaign status is kept? For instance, contact A is in email subscription 1 with a status of "Subscribed,&...
0
votes
0
answers
272
views
Unable to merge Accounts due to Account Team Members
A user tries to merge two duplicate accounts and is getting the insufficient permissions error.
The user has delete permission on accounts, opps and contacts.
Both accounts are owned by the same user (...
0
votes
0
answers
49
views
"Push to Scratch Org" is successful but no data is in Salesforce scratch org
I have a big bunch of code I'm trying to get to merge - it's from building an Experience Cloud portal which took a few weeks so it fell way behind our master. We've managed to get the code largely ...
0
votes
0
answers
143
views
How to manage subscribers in SFMC where subscriberkey is going to change, impact on journeys and campaigns
Current subscriberKey: In SFMC, we use a unique identifier "Customer_ID" as our SubsciberKey.
Use-case: There is a very small percentage of customers where "Customer_ID" may change ...
-2
votes
1
answer
125
views
Mass Contact Merge in Apex
I am trying to implement Mass merge of contacts in apex, Like uploading a CSV of multiple records which has would have details like retainable ID , duplicate contact Id etc., now I need to traverse ...
0
votes
0
answers
126
views
How to perform validation of data on Account Merge Operation
I am in a situation where I need to perform some validation on merging Account records. I believe this is possible through triggers. On checking the articles, I got to know that Delete and Update ...
-1
votes
1
answer
110
views
Is there a way where I can redirect the page to a record after insert trigger without using visualforce aura or lwc?
All I want to do is merge leads after the insertion of one lead(if found duplicate).
merging is working correctly but I want it to redirect to the merged lead record after merging. Is there a way we ...
0
votes
1
answer
684
views
What happens to oppty records when merging accounts?
when merging accounts in SFDC and both have opps (open and closed) and I want to keep all the data and history for both records, would that be possible? Or will the master account that’s identified be ...
0
votes
1
answer
237
views
Merge Accounts - Values are not copied to master record from the record to be merged
I'm trying to merge two account records using Apex merge method but the issue is values are not copied to the master record from the record to be merged. Based on the solution in this thread Merge DML ...
0
votes
2
answers
569
views
Cleaner way to filter specific object ids from List <String>?
I am trying to update one of the related objects once the Account merge is completed.
Database.MergeResult results = Database.merge(masterAcct, duplicateAcct, false);
getUpdatedRelatedIds() method ...
0
votes
0
answers
171
views
How can I merge two Account custom objects into one without saving it to the database?
I have two saved account objects with the same Name and Email.
Use case:
I need to display these two objects' data to a user.
The user selects one master object
System merges whole non-master object ...
2
votes
0
answers
418
views
Can I use exclusively declarative automation to merge records?
I am working to build an automated process that will find two records that meet a set of criteria and merge the two records.
It seems like in a perfect world, there would be a pink "Merge records&...
0
votes
1
answer
254
views
why Created Date fields is also update on merge records?
I'm merging the old existing lead with a new lead. but the problem is in the new lead all Created Date and other information is also getting updated in the new lead. which I don't want can anyone ...
0
votes
1
answer
339
views
Delete Case button access removed while keeping Delete Case access on object for merge purpose
I have a requirement to remove the access for specific users, on the Delete case List View button.
These users should still have Delete access on the Case object, in order to be able to merge cases.
...
0
votes
1
answer
165
views
How to retain the create date of a deleted Lead record after merging
What I would like to achieve via automation is to record the created date of the latest record on the retained record after merging.
Example:
A new lead comes in on 01/01/22 and a duplicate lead is ...
0
votes
1
answer
1k
views
How can you get the merge field to take a url field from an object and set it to show up as a picture image in lightning email template?
I am trying to have Salesforce LEX Email Template populate a specific image from a field that's from a Account object and (fyi) the field data type is URL. My idea was simple, put the url into the ...
2
votes
1
answer
158
views
Updated API method to detect merged records
Following the answer on this question, I had been using SELECT Id, isDeleted, masterRecordId FROM Contact WHERE masterRecordId != '' and adding AND SystemModStamp > [the last time we checked] with ...
1
vote
1
answer
710
views
Merge picklist value for a record type into metadata API
Hello,
I work on a project with visual studio code (source format) and we use Bitbucket to stock metadata (metadata api format via Ant migration tool).
I added a picklist value for a specific record ...
1
vote
1
answer
190
views
Can I use SOSL to identify all records with a certain lookup value?
What happened: someone incorrectly merged two contacts. A host of related objects had lookups populated to these two contacts. When the contacts merged, all those objects were updated to all point to ...
1
vote
1
answer
432
views
How to connect an external id to another record using apex
I currently have a situation where new contacts are created with the chance of creating duplicates. The existing contacts have an external id. Since it is not possible to merge external ids with ...
0
votes
1
answer
680
views
merge contacts with different currency values
I've got two contacts that I can't merge and here is the message I receive from Salesforce
The selected records have different currency types. To merge them,
first edit their currency types to be the ...
1
vote
1
answer
617
views
Can you merge a new contact with an existing experience contact
Can you merge a new contact with an existing experience contact where the contact on the experience user get replaced by the new contact.
I understood that it is not possible to update the contact on ...
0
votes
0
answers
149
views
What happens to child objects after a standard Account Matching Rule?
I have 20 duplicate accounts.
After merging 3 of them, all the children of these 20 accounts have been attached to only one of the merged accounts.
I precise that standart duplicate and matching rule ...
0
votes
1
answer
445
views
Merging Account Records Using SOAP With Python
I'm working on trying to merge a list of records in Salesforce via the SOAP API using Python.
I am able to get a Postman POST request to work, but I am running into a roadblock with getting the SOAP ...
3
votes
1
answer
2k
views
Merging two lists into one
I have two different lists. A list of opportunities and a list of sales (Umsatz__c), the accountid appears in both lists. How can I merge these lists into one finallist at account level?
This list ...
0
votes
1
answer
619
views
Impossible SELF_REFERENCE error when merging cases
I have a process (built with process builder), which triggers on case comments that are created (not modified). There are no triggers, workflows or flows on case comments.
I merge two cases, neither ...
0
votes
1
answer
300
views
Merging Accounts on SOAP API While Preserving Data
I am working on some code right now to merge Accounts in Salesforce, but when I need to merge accounts I need to have certain fields preserved in case the victim account has something that needs to be ...
1
vote
1
answer
748
views
Merging Accounts Sets off Trigger
I have a trigger on the Opportunity object that runs after an opportunity is deleted, inserted, undeleted, or updated, or before one is deleted, inserted, or updated. We use this to start a process on ...
0
votes
1
answer
608
views
How to merge duplicate contacts in one contact which was created first by using batch apex
How can i merge duplicate contacts under original contact.
Orginal Contact : The contact which was created first is an original contact
And we have to merge all duplicate contact in that original ...
0
votes
0
answers
139
views
Handle new data from a merged Lead
I have a process that is sending Lead data out of Salesforce. The system of record is Salesforce. 3 months later, the Lead data sent comes back into Salesforce with updated data.
There is a chance ...
0
votes
1
answer
367
views
Catch22 with almost-duplicate contacts (not recognized but can't change) [closed]
I have pairs of Contact records that ought to be merged. The dupes are obvious to humans (e.g. if one is Fred Hampton, the other might be Hampton Frederick or FredHampton FredHampton), but SF says We ...
1
vote
1
answer
1k
views
Case Merge: Identify when merge operation is complete
I'm trying to run a cleanup job on the master case record after the merge is complete. I want to update and potentially delete duplicate junction records on the master record. What I'm finding is when ...
2
votes
0
answers
1k
views
Can we By pass - These contacts have the same related account.Open the related account record and remove redundant account–contact relationships error
We have enabled Many to Many relationships between Accounts and contacts using Account Contact relationship Junction Object.
When our users are trying to merge duplicate contacts we are getting the ...
0
votes
2
answers
719
views
Is there a flag or a way to know than an Account is a result of merged accounts?
In The AccountHistory I see an entry 'Account Merged'
However when I query the Account History Object to fetch a list of all Acocunts which are a result of merge, I cannot see the Account Merged flag....
1
vote
1
answer
601
views
Update field on winning merge record
Please let me know if this should be deleted and/or merged with other topics (but literally every single google result I get is purple already - I have looked at everything I can find).
Long story ...
0
votes
2
answers
457
views
Unable to Merge two account and giving the "Database.MergeResult = Invalid field IsCustomerPortal for merge;MERGE_FAILED;"
private static void DuplicateAccountMerge(List<Account> triggerNew)
{
try{
// Merges a new Account with an existing Account based on matching email addresses.
// Old ...
0
votes
1
answer
436
views
Error when Merging accounts if email address change from salesforce UI using apex
I have trigger and handler class. I'm getting the error
Merge failed. First exception on row 0 with id 0012h00000UXvezAAD; first error: ENTITY_IS_DELETED, entity is deleted: []
when I try to merge ...
-4
votes
2
answers
861
views
JSON array into map with duplicate values [closed]
Final result when i tried the below code.
0
votes
1
answer
647
views
How to merge content from two .doc files into one using JavaScript in LWC or Apex [closed]
I have an input type file which takes two .doc files. Then I need to merge content from this files into one .doc file and download it. I supposed it is needed to read files as ArrayBuffer and then ...
0
votes
1
answer
495
views
Is there a Python library that allows you to merge duplicate accounts in salesforce? [closed]
I would like to merge 10000 accounts who already have a master account assigned to them. This was done on an Excel file manually.
I usually use the simple-salesforce API to update SF records, however ...
1
vote
0
answers
285
views
Database.merge - error "Invalid field IsCustomerPortal for merge"
I'm trying to merge accounts in apex using database.merge - Getting error "Invalid field IsCustomerPortal for merge". This field is available in Account object.
The org do not have customer ...
0
votes
1
answer
910
views
Merging Docx files into one - Apex
I have a requirement, which I should merge two or more word files (.docx) together into one file.
because I can't do arithmetic operations on Blob - I converted it to hex, made the arithmetic, ...
-1
votes
2
answers
3k
views
How to merge the header cells of the .csv file when exported on the button clicked by using lightning web component and apex code
I need to downlaod the data to .csv file by clicking on the button. I'm using lightning web component and apex class for doing this. But now I want to merge few of the header cells of the .csv file ...
0
votes
2
answers
1k
views
We couldn't merge these cases. when merging account
I am actually having issues when merging two account or person accounts. Even if they do not have cases related to them, I am encounting the following error :
We couldn't merge these cases.An ...
0
votes
1
answer
1k
views
Case Merge: What happens with related records
We have custom objects that are related to the Case object. Until now we have been using custom case merge functionality, but it has its bugs, and are exploring moving over to the new SF case merge ...
2
votes
0
answers
590
views
Updating the Case MasterRecordId field in Apex tests
I have currently got a bit of code running in my beforeUpdate trigger that updates 4 fields of a case once the MasterRecordId field is changed. This is because that field is used to distinguish ...