Restore deleted Microsoft Dataverse table records (preview)

[This article is pre-release documentation and is subject to change.]

As part of the regular business processes with Microsoft Dataverse, users often delete records or transactions either manually or systematically, either planned or by accident, via system processes, single selection, multiple selections, and bulk deletion. Retrieving deleted data is hard and often records aren't always recoverable. To address this limitation, the recycle bin is available to recover table record data from any type of delete scenario within a specified configurable time frame.

Developers should read Restore deleted records with code (preview) to learn how to interact with this feature using code.

Important

  • This is a preview feature.
  • Preview features aren’t meant for production use and may have restricted functionality. These features are available before an official release so that customers can get early access and provide feedback.
  • This feature is currently being deployed and might not yet be available in your region.
  • During preview, any storage used by the recycle bin will not count against your organization's storage capacity.

Prerequisites

To use this feature, it must be enabled in the environment where you want to restore Dataverse table records.

Enable restore table records

  1. Sign in to the Power Platform admin center as an admin (Dynamics 365 admin, Global admin, or Microsoft Power Platform admin).

  2. Select Environments and open the environment you want.

  3. Select Settings > Product > Features.

  4. Scroll down to view the Recycle Bin settings.

    • Turn On the Recycle Bin setting.
    • Specify the time interval, to be able to restore table records. You can restore table records up to 30 days after the record was deleted.

View and restore the deleted records in Power Apps

Viewing and acting on the deleted records in the Power Apps user experience is only enabled for System Administrators in the preview phase.

  1. Sign in to the Power Platform admin center as a user with the system administrator security role.

  2. Select Environments and open the environment you want to view and restore deleted records.

  3. Go to Settings > Data management > View Deleted Records.

  4. You can view all the deleted records from all tables in a new tab.

  5. Select one or more records you wish to restore, and then select Restore on the command bar. Restore deleted table records

  6. Select Ok to confirm the action to restore.

Known issues

Some records aren't restored

Some organizations add custom business logic that deletes records related to a record that is deleted. To restore related records deleted by custom business logic, you need to apply the opposite logic on the Restore operation to recover the records when you restore the original record that was deleted.

Records deleted via the table relationship cascade behavior process can be restored. For more information about cascade behavior, go to Configure table relationship cascading behavior.

Restore option not shown after enabling the recycle bin

The Restore button might not appear even when the recycle bin feature is turned on. Verify that the Enable RecycleBin for Organization system job is turned on. Go to the Power Platform admin center, select the environment where this issue is happening, Settings > Audit and logs > System jobs, and search for Enable RecycleBin and confirm the Status Reason is Succeeded. If the status reason isn't Succeeded or despite the success state appearing correct you're not seeing the Restore option for deleted records, contact a Microsoft support representative and create a support request.

See also

Restore deleted records with code (preview)