# SetGroupLabelAsync Method

## Overloads

| [SetGroupLabelAsync(String, String, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.SetGroupLabelAsync.htm#Qlik_Engine_GenericObject_SetGroupLabelAsync_System_String_System_String_System_String_) |  | You can use the SetGroupLabel method with any object that contains an object grouping definition.<br><br>This method allows you to change the label of an existing group of objects directly. |
| --- | --- | --- |
| [SetGroupLabelAsync(AsyncHandle, String, String, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.SetGroupLabelAsync.htm#Qlik_Engine_GenericObject_SetGroupLabelAsync_Qlik_Engine_AsyncHandle_System_String_System_String_System_String_) |  | You can use the SetGroupLabel method with any object that contains an object grouping definition.<br><br>This method allows you to change the label of an existing group of objects directly. |

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

## SetGroupLabelAsync(String, String, String)

You can use the SetGroupLabel method with any object that contains an object grouping definition.

This method allows you to change the label of an existing group of objects directly.

### Declaration

```

          public Task SetGroupLabelAsync([QixName("qPath")] string path, [QixName("qNewLabel")] string newLabel, [QixName("qTargetGroupId")] string targetGroupId = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | path | Path to the definition of the object to be selected.<br>For example `/qNxGroupDef` . |
| System.String | newLabel | New label for the group.<br>A label starting with an '=' will be evaluated as an expression. |
| System.String | targetGroupId | Id of the group whose label will be set (if not the called object). |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

[IGenericObject.SetGroupLabelAsync(String, String, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.SetGroupLabelAsync.htm#Qlik_Engine_IGenericObject_SetGroupLabelAsync_System_String_System_String_System_String_)

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

## SetGroupLabelAsync(AsyncHandle, String, String, String)

You can use the SetGroupLabel method with any object that contains an object grouping definition.

This method allows you to change the label of an existing group of objects directly.

### Declaration

```

          public Task SetGroupLabelAsync(AsyncHandle asyncHandle, [QixName("qPath")] string path, [QixName("qNewLabel")] string newLabel, [QixName("qTargetGroupId")] string targetGroupId = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.String | path | Path to the definition of the object to be selected.<br>For example `/qNxGroupDef` . |
| System.String | newLabel | New label for the group.<br>A label starting with an '=' will be evaluated as an expression. |
| System.String | targetGroupId | Id of the group whose label will be set (if not the called object). |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Implements

[IGenericObject.SetGroupLabelAsync(AsyncHandle, String, String, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.SetGroupLabelAsync.htm#Qlik_Engine_IGenericObject_SetGroupLabelAsync_Qlik_Engine_AsyncHandle_System_String_System_String_System_String_)