Administering an Encyclopedia volume : About Encyclopedia-level management operations : Retrieving a property list for an item in a folder : Setting a condition using GetFolderItems
 
Setting a condition using GetFolderItems
To limit the search of a folder to those items that match a specific condition, use GetFolderItems and identify the condition in the Search element. Use ResultDef to specify the information to return about each item. For example, to search only for folders in the working directory, send the following request:
<SOAP-ENV:Body>
<GetFolderItems>
<FolderName>/</FolderName>
<ResultDef>
<String>Name</String>
<String>FileType</String>
</ResultDef>
<Search>
<Condition>
<Field>FileType</Field>
<Match>Directory</Match>
</Condition>
<FetchSize>100</FetchSize>
<CountLimit>150</CountLimit>
</Search>
</GetFolderItems>
</SOAP-ENV:Body>
The preceding request returns the file name and file type of each directory in the working folder. It also returns an identifier for each file and a count of the items.
<SOAP-ENV:Body>
<GetFolderItemsResponse>
<ItemList>
<File>
<Id>14</Id>
<Name>Belden</Name>
<FileType>Directory</FileType>
</File>
<File>
<Id>31</Id>
<Name>Brothers</Name>
<FileType>Directory</FileType>
</File>
</ItemList>
<TotalCount>10</TotalCount>
</GetFolderItemsResponse>
</SOAP-ENV:Body>