Text list
This function returns the key(s) of asset object(s) returned by the specified AQL query (Assets Query Language). In case the specified AQL returns an empty result, null is returned. In case the specified AQL is not valid, an error occurs.
getAssetsFromAQL(aql) #Output: Text list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the key(s) of the asset object(s) with the object type "Phones", e.g.: PTAS-1, PTAS-2 |
|
Bash
|
This example returns the key(s) of the asset object(s) for which the "OS Version" attribute is equal to the value "macOS Venture",e.g.: ITSM-42 |
|
Bash
|
This example returns the key(s) of the asset object(s) for which the incoming reference is the object from an asset object custom field with a single object, e.g.: ITSM-39,ITSM-40,ITSM-41 |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
||||
|---|---|---|---|---|---|---|
|
|
text |
Text containing a valid AQL expression.
|
Output
This function returns a text LIST
(books) Use cases and examples
| Use case | JWT feature | Workflow function | Parser functions | Complexity |
|---|---|---|---|---|
| Automating annual access review for company software in assets |
|