Skip to content

Export

Search or filter the sample history, then use Export to download matching records as CSV or JSON.

The panel exports every matching page in its current search and row/cell scope. Scoped exports preserve transaction identity and include only changes in the selected scope.

Use exportRecords for custom export buttons or reporting workflows:

const csv = auditHistoryPlugin?.exportRecords({
format: 'csv',
filter: { actionType: 'bulk-paste' },
includeMetadata: true,
});
const json = auditHistoryPlugin?.exportRecords({ format: 'json' });

Export failures are reported through auditerror with phase export and return an empty string. That keeps export buttons from crashing the page while still giving your app a single error channel for observability.

The optional second argument to exportRecords(options, selection?) exports an explicit record selection through the same serializer and error handling without replacing stored history. Display translations and date/value formatters do not alter raw export values.

Configure panel export controls.