---
schema_version: "1"
id: 2c327c3457d14bc39209718fe8b777cd1c0e03f27c08ed45e213dbd4b1be1f06
title: DataValue | Tableau Embedding API
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/embedding_api/reference/interfaces/DataValue.md
canonical_url: https://help.tableau.com/current/api/embedding_api/en-us/reference/interfaces/DataValue.html
source_site: help.tableau.com
content_type: documentation
content_hash: cafe17bb157fb84bcd77faf39fcdf2f604db82376ac11535a832ecf4b604a125
description: Documentation for Tableau Embedding API
---
- DataValue

# Interface DataValue

interface DataValue {  
    [aliasValue](#aliasvalue)?: string;  
    [formattedValue](#formattedvalue)?: string;  
    [hasAlias](#hasalias)?: boolean;  
    [nativeValue](#nativevalue): any;  
    [value](#value): any;  
}

- Defined in packages/api-external-contract-js/src/ExternalContract/Shared/DataTableInterfaces.ts:88

##### Index

### Properties

[aliasValue?](#aliasvalue) [formattedValue?](#formattedvalue) [hasAlias?](#hasalias) [nativeValue](#nativevalue) [value](#value)

## Properties

### `Optional` `Readonly`aliasValue[](#aliasvalue)

aliasValue?: string

#### Returns[](#returns)

The alias of a value only if `hasAlias` is true.

- Defined in packages/api-external-contract-js/src/ExternalContract/Shared/DataTableInterfaces.ts:120

### `Optional` `Readonly`formattedValue[](#formattedvalue)

formattedValue?: string

#### Returns[](#returns-1)

The value formatted according to the locale and the formatting applied to the field or parameter.

- Defined in packages/api-external-contract-js/src/ExternalContract/Shared/DataTableInterfaces.ts:115

### `Optional` `Readonly`hasAlias[](#hasalias)

hasAlias?: boolean

#### Returns[](#returns-2)

Indicates if the DataValue contains an alias (for DataValues of Parameters with domain restriction type `ParameterValueType.List`).

- Defined in packages/api-external-contract-js/src/ExternalContract/Shared/DataTableInterfaces.ts:126

### `Readonly`nativeValue[](#nativevalue)

nativeValue: any

#### Returns[](#returns-3)

The raw native value as a JavaScript type, which is one of string, number, boolean, or Date object. Please note that special values are returned as null. The actual special value can be found in formattedValue, which would be something like 'Null', or 'No-Access'. Using nativeValue can greatly simplify your error checking since all values will be their native type value or null.

- Defined in packages/api-external-contract-js/src/ExternalContract/Shared/DataTableInterfaces.ts:108

### `Readonly`value[](#value)

value: any

#### Returns[](#returns-4)

Contains the raw native value as a JavaScript type, which is one of string, number, boolean, or Date (as a string). Please note that special values, regardless of type, are always returned as a String surrounded by percent signs, such as '%null%', or '%no-access%'.

- Defined in packages/api-external-contract-js/src/ExternalContract/Shared/DataTableInterfaces.ts:97

### Settings

Member Visibility

- Protected
- Inherited
- External

ThemeOSLightDark

### On This Page

Properties

[aliasValue](#aliasvalue)[formattedValue](#formattedvalue)[hasAlias](#hasalias)[nativeValue](#nativevalue)[value](#value)