You need to sign in to do that
Don't have an account?
mikef
Merge Question
Does anyone know if you can merge a lead from the after trigger of the inserted lead?
I get the error: The master record id [SObject id] appears in the merge id list:
My thinking is you can't merge a Lead, Contact, or Account while inserting that record.
Business case:
On the insert of a lead I am querying to see if there is other leads with the same email.
If so then merge the inserted lead with the found lead.
Thank you.
I get the error: The master record id [SObject id] appears in the merge id list:
My thinking is you can't merge a Lead, Contact, or Account while inserting that record.
Business case:
On the insert of a lead I am querying to see if there is other leads with the same email.
If so then merge the inserted lead with the found lead.
Thank you.
Hello,
I have a similar business requirement on contact object, have you managed to find a solution using merge from after trigger ?
Thanking you
I have a similar requirement of merging the Contact records , while also have to assign the case associated with any duplicate record to the winning Contact record.
Please let me know if you have found a solution.
In a merge functionality, if the inserted record is the losing record you will need to delete this.
However, using a future method, you could achieve this.
Thanks,
Thanks,
Read more about future calls at
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_future.htm
In the future method, you can now delete the losing records, so you can use the merge statement. Read more about the merge statement at
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dml_merge.htm