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

# getCsvDelimiterValue()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/exports/csvDelimiter.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Returns the actual delimiter character for a given preset selection.

When the preset is `"custom"`, the provided custom delimiter string is returned as-is. When the preset is `"inherit"`, `undefined` is returned so the `delimiter` field is omitted from the saved settings, letting the backend-resolved default (workspace or organization setting) apply instead.

**Signature:**

```typescript
export declare function getCsvDelimiterValue(selectedPreset: CsvDelimiterPreset, customDelimiter: string): string | undefined;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| selectedPreset | [CsvDelimiterPreset](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.csvdelimiterpreset/index.md) | the selected preset identifier |
| customDelimiter | string | the user-provided custom delimiter (used only when preset is `"custom"`) |

**Returns:**

string &#124; undefined

the resolved delimiter character, or `undefined` when the preset is `"inherit"`
