Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | getServiceDeskKBArticles(serviceDeskId, searchQuery) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns an array of JSMKBArticle for the provided parameters. |
This routine returns an array of JSMKBArticle structures for the provided serviceDeskId and search query.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
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
JSMKBArticle[]
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'.
Code Block |
---|
|
JSMKBArticle[] articles = getServiceDeskKBArticles(1, "How");
return articles; |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "jsd_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|