Execute a search condition configuration named 'objectInFolderId', passing a list of folderIds as a parameter:
http://demo.teradp.com/Tark4/do.ashx?Cmd=search&name=objectInFolderId&pars=folderIds:27754,28012
In this example, the contents of folders with ids = 27754 and 28012 are returned in the xml.
The Search configuration is defined as follows:
<SearchConditions
xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
ObjectTypeName="folderObject">
<SearchNode xsi:type="ConditionSearchNode" Op="In">
<Left xsi:type="AttributeSearchNode" Path="folderObject.folderRef" />
<Right xsi:type="VariableSearchNode" Name="folderIds" Type="IdList" />
</SearchNode>
<OrderList IsAscending="true">
<Item xsi:type="AttributeRef" ObjectTypeName="folderObject" AttributeTypeName="name"/>
</OrderList>
</SearchConditions>
The results are sorted by object name:
<?xml version="1.0" encoding="utf-8" ?>
<result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org...
<searchResult n="43" from="0" count="43" queryTimeSpan="0">
<xml>
<objects xmlns="urn:schemas-teradp-com:gn4tera">
<video nav:objectType="video" id="obj28036" name="0000000086.flv" ...
<image nav:objectType="image" id="obj27990" name="Alaska Volcano_641630.jpg" ...
<audio nav:objectType="audio" id="obj27716" name="all_missing_pieces_20070918_44_1kHz.mp3"...
<image nav:objectType="image" id="obj25477" name="APTOPIX Afghanistan Marines.jpg"...
Executing the command without the required parameter results in an error:
<result
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.teradp.com/schemas/GN4/1/Results.xsd">
<error
code="1903"
name="SearchMissingParameter"
message="Search conditions: missing parameter 'folderIds' (ERR1903)" />
</result>