getServiceDeskKBArticles
Syntax | getServiceDeskKBArticles(serviceDeskId, searchQuery) | Package |
|
Alias |
| Pkg Usage |
|
Description
This function returns an array of JSMKBArticle structures for the provided serviceDeskId and search query.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
serviceDeskId | number | Yes | The servicedesk id for which to search for articles. |
searchQuery | String | Yes | The string used to filter the articles. |
Return Type
Returns an array of JSMKBArticle for the provided parameters.
Example
The following script will return an array of JSMKBArticle structures for the serviceDesk with id '1' and the provided query 'How'.
JSMKBArticle[] articles = getServiceDeskKBArticles(1, "How");
return articles;