Revert solf deletion

Hi,

I have soft deleted an entry, now if I want to remove the deletion for that entry. i.e. that entry should be visible again in non-deleted data. Then how should I do it ?

should I just make the deletedBy and deletedDate column value to null for that entry using datamanager ? Is it possible, or is there another way ?

Thanks in advance.

If you want to restore entities after soft deletion programmatically, you can use the special EntityRestore bean. It is available through injection.

@Autowired
private EntityRestore entityRestore;
....
int amountRestored = entityRestore.restoreEntities(entityList);

But the Entity inspector screen also contains the option to restore records after a soft delete.
image

1 Like