This documentation supports the 21.05 version of BMC Helix CMDB.

To view an earlier version, select the version from the Product version menu

Running saved queries in web service

While running a saved query, the search results display only the list of root CIs instead of displaying all the related CIs.

When running saved queries, you need to ensure that the input parameter passed in place of the <id> tag should be the unique Id (GUID) of the parameter and not its name. For example, passing "Name" in place of a CI’s name will not give the desired search results because attribute names are not unique. You must pass the Unique Id, instead.

You can retrieve unique Ids by first calling the getSavedQuery web service and then passing that unique Id in the <id> tag. 

An example of a saved query is as shown in the following figure. 

Use the Attribute, Operation, and Id of SavedQueryParameter in ExecuteSavedQuery as shown in the following figure. 

A sample XML is as shown as follows: 

Sample XML

<soapenv:Envelope xmlns:soapenv="" xmlns:typ="">
<!--Zero or more repetitions:-->
<!--You have a CHOICE of the next 17 items at this level-->
<!--You may enter ANY elements at this point-->

Related topic

Finding CIs using a saved query

Was this page helpful? Yes No Submitting... Thank you