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: