---
title: "getKBArticles"
canonical: "https://support.appfire.com/space/PSJC/741212243/getKBArticles"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Returns an array of JSMKBArticle for the provided query.

This function returns an array of JSMKBArticle structures for the provided search query.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getKBArticles(searchQuery) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| searchQuery | String | Yes | The string used to filter the articles. |

## Return Type

**[JSMKBArticle[]](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

Returns an array of JSMKBArticle for the provided query.

## Example

The following script will return an array of JSMKBArticle structures for the provided query 'template'.

```javascript
JSMKBArticle[] articles = getKBArticles("template");
 return articles;
```

## See also

> Macro (contentbylabel)