# SetContent method

Sets a value to a variable.

Information note **DEPRECATED.**  
This is deprecated and may be removed in a future version.

Use *[SetProperties](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/EngineJSONAPI/Content/service-genericvariable-setproperties.htm)* method instead

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qContent | Value of the variable. | Yes | String |
| qUpdateMRU | If set to true, the value is added to the Most Recently Used (MRU) list. | Yes | Boolean |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qReturn | true/false<br><br>Information noteThe operation is successful if qReturn is set to true. | Boolean |