# ApplicationApi

Canonical page: https://www.adaptabletools.com/docs/reference/applicationapi

Provides run-time access to the Application Module

```ts title="TypeScript"
export interface ApplicationApi 
```

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [addApplicationDataEntry(applicationDataEntry)](https://www.adaptabletools.com/docs/reference/applicationapi.md#addapplicationdataentry) | `void` | Adds new Application Data Entry |
| [createApplicationDataEntry(key, value)](https://www.adaptabletools.com/docs/reference/applicationapi.md#createapplicationdataentry) | `void` | Creates new Application Data Entry with given Key and Value |
| [deleteApplicationDataEntry(applicationDataEntry)](https://www.adaptabletools.com/docs/reference/applicationapi.md#deleteapplicationdataentry) | `void` | Deletes given Application Data Entry |
| [editApplicationDataEntry(applicationDataEntry)](https://www.adaptabletools.com/docs/reference/applicationapi.md#editapplicationdataentry) | `void` | Edits given Application Data Entry |
| [getApplicationDataEntries()](https://www.adaptabletools.com/docs/reference/applicationapi.md#getapplicationdataentries) | [`ApplicationDataEntry`](https://www.adaptabletools.com/docs/reference/applicationdataentry.md)`[]` | Every key/value entry in Application State. |
| [getApplicationDataEntriesByValue(value)](https://www.adaptabletools.com/docs/reference/applicationapi.md#getapplicationdataentriesbyvalue) | [`ApplicationDataEntry`](https://www.adaptabletools.com/docs/reference/applicationdataentry.md)`[]` | Gets Application Data Entry with given value |
| [getApplicationDataEntryByKey(key)](https://www.adaptabletools.com/docs/reference/applicationapi.md#getapplicationdataentrybykey) | [`ApplicationDataEntry`](https://www.adaptabletools.com/docs/reference/applicationdataentry.md)` \| undefined` | Gets Application Data Entry with given key |
| [getApplicationState()](https://www.adaptabletools.com/docs/reference/applicationapi.md#getapplicationstate) | [`ApplicationState`](https://www.adaptabletools.com/docs/reference/applicationstate.md) | The Application section of Adaptable State. |

## Method Details

### addApplicationDataEntry

Adds new Application Data Entry

```ts title="TypeScript"
addApplicationDataEntry(applicationDataEntry: ApplicationDataEntry): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| applicationDataEntry | [`ApplicationDataEntry`](https://www.adaptabletools.com/docs/reference/applicationdataentry.md) | Application Data Entry to add |

###### Returns

`void`

### createApplicationDataEntry

Creates new Application Data Entry with given Key and Value

```ts title="TypeScript"
createApplicationDataEntry(key: string, value: any): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| key | `string` | the Application Data Entry key |
| value | `any` | the Application Data Entry value |

###### Returns

`void`

### deleteApplicationDataEntry

Deletes given Application Data Entry

```ts title="TypeScript"
deleteApplicationDataEntry(applicationDataEntry: ApplicationDataEntry): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| applicationDataEntry | [`ApplicationDataEntry`](https://www.adaptabletools.com/docs/reference/applicationdataentry.md) | Application Data Entry to delete |

###### Returns

`void`

### editApplicationDataEntry

Edits given Application Data Entry

```ts title="TypeScript"
editApplicationDataEntry(applicationDataEntry: ApplicationDataEntry): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| applicationDataEntry | [`ApplicationDataEntry`](https://www.adaptabletools.com/docs/reference/applicationdataentry.md) | Application Data Entry to edit |

###### Returns

`void`

### getApplicationDataEntries

Every key/value entry in Application State.

```ts title="TypeScript"
getApplicationDataEntries(): ApplicationDataEntry[];
```

###### Returns

 The entries, in state order

[`ApplicationDataEntry`](https://www.adaptabletools.com/docs/reference/applicationdataentry.md)`[]`

### getApplicationDataEntriesByValue

Gets Application Data Entry with given value

```ts title="TypeScript"
getApplicationDataEntriesByValue(value: any): ApplicationDataEntry[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| value | `any` | the Value of the Application Data Entry to retrieve |

###### Returns

 Every entry whose value is `value`. Empty when none match

[`ApplicationDataEntry`](https://www.adaptabletools.com/docs/reference/applicationdataentry.md)`[]`

### getApplicationDataEntryByKey

Gets Application Data Entry with given key

```ts title="TypeScript"
getApplicationDataEntryByKey(key: string): ApplicationDataEntry | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| key | `string` | the Key of the Application Data Entry to retrieve |

###### Returns

 The entry with that key, or `undefined` when no entry has it

[`ApplicationDataEntry`](https://www.adaptabletools.com/docs/reference/applicationdataentry.md)` | undefined`

### getApplicationState

The Application section of Adaptable State.

```ts title="TypeScript"
getApplicationState(): ApplicationState;
```

###### Returns

 The current Application State

[`ApplicationState`](https://www.adaptabletools.com/docs/reference/applicationstate.md)
