# GetMatchingFields method

Retrieves any fields that match all of the specified tags or just one of them in the data model of an app.

Information note

Tags set by Qlik Sense are prefixed by the *$* sign.

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qTags | List of tags.<br>The *GetMatchingFields* method looks for fields that match one or all of the tags in this list, depending on the value of *qMatchingFieldMode* . | Yes | Array of String |
| qMatchingFieldMode | Matching field mode.<br>The default value is MATCHINGFIELDMODE\_MATCH\_ALL.<br><br>One of:<br><br><ul><li>MATCHINGFIELDMODE_MATCH_ALL</li><li>MATCHINGFIELDMODE_MATCH_ONE</li></ul> | No | String |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qFieldNames | List of matching fields. | Array of [NxMatchingFieldInfo](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/EngineJSONAPI/Content/models-nxmatchingfieldinfo.htm) |