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

# newPublisherDocumentFilterIdV2()

- 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/publisher/v2/factory.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).
> 

Generates a document filter id such as `document_filter_region_name`.

**Signature:**

```typescript
export declare function newPublisherDocumentFilterIdV2(input: INewPublisherDocumentFilterIdOptionsV2): string;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| { target, usedIds, } | (not declared) |  |
| input | [INewPublisherDocumentFilterIdOptionsV2](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.inewpublisherdocumentfilteridoptionsv2/index.md) |  |

**Returns:**

string

## Remarks

Every character of the target's identifier outside `[A-Za-z0-9_]` becomes `_`, and the id is cut to 64 characters. When the document already uses the id, `_2`, `_3` and so on is appended, with the base shortened so the id stays within 64 characters.

Throws when the target is not an identifier ref.
