Development Status
Work In Progress
Active Installs

Last updated: 2022-06-13

Works with CiviCRM 5.0 or higher.

Restore CiviCRM data using the detailed log tables.

The extension only exposes an APIv3 call, accessible from the command line or from the API Explorer (Support > Developers > API3 Explorer). For example, to undelete contact ID 1234, enter: entity = Contact, action = undelete, id = 1234.

Known issues

For contacts and their basic data can currently be restored (email, phone, address, custom data, contact-activity relation).

The restoration also has a few assumptions:

  • It restores the latest Contact change
  • It restores only the latest Custom Value change (it does not currently support multi-record custom fields)
  • It restores all changes done to phone/address/email, which might restore some very old records.

At the moment, only Contacts and Report Instances can be undeleted. If you are a programmer, it should be fairly easy to add other entities, and patches welcome.

The readme may have more up-to-date information.