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

# createIdentifier()

- 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/yamlUtils.ts

**Signature:**

```typescript
export declare function createIdentifier<T = AfmObjectIdentifier>(data: string, input?: {
    forceMetric?: boolean;
    forceType?: "user" | "userGroup" | "dataset" | "date" | "attribute" | "label" | "measure" | "workspaceDataFilter" | "visualizationObject" | "analyticalDashboard" | "dashboardPlugin" | "filterContext";
}): T | null;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| data | string |  |
| { forceMetric, forceType, } | (not declared) | _(Optional)_ |
| input | { forceMetric?: boolean; forceType?: "user" \| "userGroup" \| "dataset" \| "date" \| "attribute" \| "label" \| "measure" \| "workspaceDataFilter" \| "visualizationObject" \| "analyticalDashboard" \| "dashboardPlugin" \| "filterContext"; } | _(Optional)_ |

**Returns:**

T &#124; null
