> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# generateFileName()

- Package: [@gooddata/sdk-code-convertors](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-code-convertors/src/utils/nameUtils.ts

**Signature:**

```typescript
export declare function generateFileName(used: FileNamesUsed, base: string[], id: string, title?: string | null): string;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| used | [FileNamesUsed](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/sdk-code-convertors.filenamesused/index.md) |  |
| base | string[] |  |
| id | string |  |
| title | string \| null | _(Optional)_ |

**Returns:**

string
