# GetVariableByName method

Gets the handle of a variable.

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qName | Name of the variable. | Yes | String |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qReturn | { "qType": "GenericVariable", "qHandle": &lt;Handle of the variable&gt; } | [ObjectInterface](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-objectinterface.htm) |