Searching by Parent Customer
The example uses the advanced search to find items of the specified parent customer.
- Connect to the configuration web service.
Code Sample
# Get the default search criteria.
$criteria = $xia.GET_DefaultSearchCriteria();
# Configure the criteria.
$criteria.SearchString = "*";
$criteria.Filters.ParentCustomerID = 35169;
# Perform the search.
$searchResults = $xia.DO_PerformSearch($criteria)
foreach ($searchResult in $searchResults.SearchResult)
{
Write-Host "Located $($searchResult.Name) [$($searchResult.ItemID)]";
}