# getAuditLogAsCsv

Converts audit records to CSV text for inspection or transfer without downloading a file.

Canonical: https://grid.syidax.com/docs/methods/getAuditLogAsCsv/

<a id="meaning"></a>

## What does this API do?

Converts audit records to CSV text for inspection or transfer without downloading a file.

<a id="contract"></a>

## Exact input and result types

```typescript
getAuditLogAsCsv(filter?: AuditLogFilter): Promise<string>
```

| Arguments | Required | Type |
| --- | --- | --- |
| filter | Optional | AuditLogFilter |

The return type is `Promise<string>`.

<a id="usage"></a>

## Usage flow

After registering and initializing the Grid element, call grid.getAuditLogAsCsv(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

<a id="types"></a>

## Read related types

- [AuditLogFilter](https://grid.syidax.com/docs/types/AuditLogFilter.md)

<a id="recipes"></a>

## Feature explanations and examples

- [View change history](https://grid.syidax.com/docs/features/audit-log.md) — The audit log tracks row, cell, and selection changes and undo/redo transitions. Use it to inspect change history that current values alone cannot reveal.
