Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

getServiceDeskKBArticles(serviceDeskId, searchQuery)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
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
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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
languagejs
JSMKBArticle[] articles = getServiceDeskKBArticles(1, "How");
 return articles;

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "jsd_routine" and space = currentSpace ( )
labelsarray_routines