# GetFavoriteVariablesAsync Method

## Overloads

| [GetFavoriteVariablesAsync()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetFavoriteVariablesAsync.htm#Qlik_Engine_IApp_GetFavoriteVariablesAsync) |  | Retrieves the variables that are tagged as favorite. |
| --- | --- | --- |
| [GetFavoriteVariablesAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetFavoriteVariablesAsync.htm#Qlik_Engine_IApp_GetFavoriteVariablesAsync_Qlik_Engine_AsyncHandle_) |  | Retrieves the variables that are tagged as favorite. |
| [GetFavoriteVariablesAsync<T>(AsyncHandle, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetFavoriteVariablesAsync.htm#Qlik_Engine_IApp_GetFavoriteVariablesAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) |  | Retrieves the variables that are tagged as favorite. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetFavoriteVariablesAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetFavoriteVariablesAsync.htm)

## GetFavoriteVariablesAsync()

Retrieves the variables that are tagged as favorite.

### Declaration

```

          Task<IEnumerable<string>> GetFavoriteVariablesAsync()
    
  
```

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.Collections.Generic.IEnumerable&lt;System.String&gt;&gt; |  |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetFavoriteVariablesAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetFavoriteVariablesAsync.htm)

## GetFavoriteVariablesAsync(AsyncHandle)

Retrieves the variables that are tagged as favorite.

### Declaration

```

          Task<IEnumerable<string>> GetFavoriteVariablesAsync(AsyncHandle asyncHandle)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.Collections.Generic.IEnumerable&lt;System.String&gt;&gt; |  |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetFavoriteVariablesAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetFavoriteVariablesAsync.htm)

## GetFavoriteVariablesAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;)

Retrieves the variables that are tagged as favorite.

### Declaration

```
Task<T> GetFavoriteVariablesAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |