# GetAppField Method

## Overloads

| [GetAppField(IApp, String, Boolean, Int32, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.AppExtensions.GetAppField.htm#Qlik_Sense_Client_AppExtensions_GetAppField_Qlik_Engine_IApp_System_String_System_Boolean_System_Int32_System_String_) |  | Get app field. The AppField instance is a session object and must be disposed to avoid session object leakage. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.AppExtensions.GetAppField.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.AppExtensions.GetAppField.htm)

## GetAppField(IApp, String, Boolean, Int32, String)

Get app field. The AppField instance is a session object and must be disposed to avoid session object leakage.

### Declaration

```

          public static IAppField GetAppField(this IApp theApp, string name, bool showAlternatives = false, int pageSize = 20, string stateName = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IApp](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.htm) | theApp | The app object. Can be omitted when calling the method as an instance method on the IApp object. |
| System.String | name | Name of the field |
| System.Boolean | showAlternatives | Show alternatives |
| System.Int32 | pageSize | The size of the page returned, default 20 |
| System.String | stateName | The alternate state to use. |

### Returns

| Type | Description |
| --- | --- |
| [IAppField](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.IAppField.htm) | The IAppField object |