Page cover image

🪃Recycle Bin on Dataverse (Preview)

#PowerPlatform, #Dataverse, #Restore, #RecycleBin

Recovering Deleted Data in Microsoft Dataverse

In Microsoft Dataverse, records or transactions can be deleted through various means - manually by users, automatically by system processes, or through bulk deletion actions. These deletions can occur intentionally or accidentally

The challenge lies in the recovery of deleted data. Historically, restoring records in Dataverse could be difficult, with some data potentially being permanently lost. To mitigate this issue, Microsoft provides a solution: the Recycle bin.

The Recycle bin in Microsoft Dataverse is designed to recover table record data regardless of how it was deleted—covering all deletion scenarios. This feature operates within a flexible, configurable timeframe, ensuring that users have a window in which they can retrieve their lost data.

Okay.. now.. let's try this preview feature with me! 👍

Enabling the "Recycle Bin" for an environment

In the Power Platform Admin Center > Setting > under the Feature setting: Enable Recycle bin for Dataverse table and specify the Time interval as below.

Enabling the Recycle bin for Dataverse tables

Next, wait at least 10 minutes for the configuration process to complete.

How to restore deleted records?

Restore deleted records:

To restore deleted records, you go back to the Power Platform Admin Center > Select the environment and click Setting. After that, under Data Management > click "View Deleted Record (Preview).

View Deleted Record (Preview)

The system will show all deleted records and you can select one or multiple records that need to be restored. After that, click the button Restore to recall data.

Restoring selected record

and then, checking the record after restoring.

Testing now...

I will test my environment (without D365 Applications). I will separate the test case for data checking after restoring deleted records.

For instance, I will check on 2 entities:

  • Parent entity: Account

  • Child entity: Deal

  • The relationship: Account (1:n) Deal

Test Case 1: Delete the child entity "Deal" with the lookup field "Account" containing data.

Expectation after restoring deleted Deal record: The Account field will be restored with the original data

Before deleting: Deal record - the Account field contains value "NTD Asia Corp"

After Restoring: The testing passed. The Deal record has been restored successfully with the original Account field value.

Test Case 2: Delete the parent entity "Account" associated with the Deal records.

I have 2 Deal records associated with the Account "Hoang Quan Corp." -> After deleting the Account "Hoang Quan Corp.", this value has been removed from 2 related Deal records before.

Now, after restoring the Account "Hoang Quan Corp.", I hope that this value will be associated with Deal records before.

After restoring: The Account "Hoang Quan Corp." has been restored and associated with 2 Deal records before. -> The testing passed.

Thank you for reading & Hoping well! 🎉 [NTD]yns.asia

Last updated

Was this helpful?