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

# attributeLocalId()

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

Gets local identifier of an attribute.

**Signature:**

```typescript
export declare function attributeLocalId(attributeOrId: IAttribute | Identifier): string;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| attributeOrId | [IAttribute](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iattribute/index.md) \| [Identifier](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.identifier/index.md) | attribute to work with or the identifier |

**Returns:**

string

value of local identifier

## Remarks

For convenience and fluency, this function accepts both attribute object and identifier.
