# OnGetVariableAsync Method

## Overloads

| [OnGetVariableAsync(Response)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.OnGetVariableAsync.htm#Qlik_Engine_App_OnGetVariableAsync_Qlik_Engine_Communication_IO_Response_) |  |  |
| --- | --- | --- |

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

## OnGetVariableAsync(Response)

### Declaration

```

          [Obsolete("Use _Doc::GetVariableById_ method or _Doc::GetVariableByName_ method instead")]
protected virtual Variable OnGetVariableAsync(Response response)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [Response](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm) | response |  |

### Returns

| Type | Description |
| --- | --- |
| [Variable](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.htm) |  |