Skip to end of banner
Go to start of banner

Search functions

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

We are happy to introduce search functions. First functions are to filter assets by referenced assets. More functions will be added later.

referenceAsset

referenceAsset function lets you to filter assets by referenced assets value. For example there is Computer asset which has Mouse reference asset. You can filter all Computers having Mouse that assigned to a user such as current, reporter, assignee or a specific user.

You can use this function at Basic Search of Asset Navigator for "Asset List" or "Asset List by Asset Type" type of attributes.

SyntaxreferenceAsset("FIELD NAME 1", "VALUE 1", "FIELD NAME 2", "VALUE 2", ..)
Supported fields"Asset List", "Asset List by Asset Type"
DescriptionField name and value pairs are expected. Number of parameters should be an even number.


Examples:

ExampleDescription
referenceAsset("Authorised Group Users", "agrant-sd-demo")




referenceAssetByType

referenceAssetByType works just like referenceAsset with one more additional parameter which lets you to filter assets by asset type.

referenceAssetByType("ASSET TYPE NAME", "FIELD NAME", "VALUE")

Function signaturereferenceAssetByType("ASSET TYPE NAME 1", "FIELD NAME 1", "VALUE 1", "ASSET TYPE NAME 2", "FIELD NAME 2", "VALUE 2", ...)
DescriptionAsset type, field name and value parameters are expected. Number of parameters should 3 or multiples 3.
  • No labels