Skip to main content
After the accounts are merged, the child record gets MasterRecordid as it's parent/master account Id. But the record is in recycle bin.

 

Using SQL query, "SELECT MasterRecordId,Id,name FROM Account WHERE MasterRecordId != null", I can get the MasterRecordId from Salesforce.

 

I need to update the field on Parent Account record (MasterRecordId record) and update a new field with the Id of child record.

 

Can anyone help me with the process of how I can achieve this?

 

I am trying to wrote a trigger but I am only able to update the records in recycle bin which is not useful.
1 réponse