Realm admins can enable the ability to track data changes in fields. Then, realm admins, app admins, and super users can view the data changes from audit logs, and restore previous values in fields.
In this article
View data changes
Realm admins can view data changes for the entire realm. App admins and super users can view data changes for their specific apps.
- Access audit logs
- In the Actions column, find a record_add, record_edit, or record_delete action.
- Click on View data changes in the Description column to view details.
If existing data was updated, the old values display in the Previous value column and new values display in the Current value column.
Learn how to always show specific fields in data change logs.
Note: Audit Logs has a data size limit of 0.25 megabytes per record. This equates to 250,000 characters or about 40,000 words. If your app has lengthy field values and you are tracking many fields, the amount of data displayed in each field may be truncated.
Restore previous values
You can restore values to their previous state when viewing Data changes from audit logs.
Note: The restore option is only available when accessing audit logs for a specific app, not for the entire realm.
To restore values:
- View data changes from audit logs for a specific app
- Select the checkbox next to the field(s) you want to restore
- Select Restore previous values
A success message will confirm the value was restored to the previous state.
Restore deleted records
When a record is deleted, you can create a new record using the same fields and values.
To restore a deleted record:
- Select View deleted record from audit logs
- Choose the fields and values you’d like to restore
- Select Use previous values to create new record
A success message will confirm a new record was created using the fields and values from the deleted record.