below is the code

trigger efs_ProjectTrigger on Project__c (after delete) 
 Set<ID> ProjectIds = new Set<ID>();
   for(Project__c  Proj:trigger.old){
    // End 

when the we are merging the two projects , we will get masterrecordid but i am getting Variable does not exist: MasterRecordId in trigger.

  • Isn't merge only supported on a few custom objects (Lead/Contact/Account)? What leads you to believe you can merge Project__c records? – Adrian Larson Mar 15 '18 at 14:42
  • we are using DupEliminator(App Exchange product) to merge the Project__c records – Prasanth Mar 15 '18 at 17:55

MasterRecordId only exists on Account, Contact, and Lead. Other objects cannot be merged using the DML merge operation. If there is a merge feature for your object, it's a custom feature written in code. You'll need to check your other code to see how it was accomplished.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.