# GetVariableById Method

## Overloads

| [GetVariableById(String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.GetVariableById.htm#Qlik_Engine_App_GetVariableById_System_String_) |  | Gets the handle of a variable. |
| --- | --- | --- |

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

## GetVariableById(String)

Gets the handle of a variable.

### Declaration

```

          public GenericVariable GetVariableById([QixName("qId")] string id)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | id | Identifier of the variable. |

### Returns

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

### Implements

[IApp.GetVariableById(String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetVariableById.htm#Qlik_Engine_IApp_GetVariableById_System_String_)