3 - All objects in folder with specified Path

Build 1501 on 14/Nov/2017  This topic last edited on: 15/Mar/2016, at 11:50

Execute a search condition configuration named 'folderObjectInFolder', passing a single folderPath as a parameter:

http://demo.teradp.com/Tark4/do.ashx?Cmd=search&name=folderObjectInFolder&pars=folderPath:/system/import/ftp

 

The conditions defined in the search configuration 'folderObjectInFolder' are shown below:

<SearchConditions

xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

ObjectTypeName="folderObject"

SavedSearchName="">

 <SearchNode xsi:type="SearchConditionList">

   <List xsi:type="SearchCondition" Path="[folderObject.folderRef.path]" Op="Equal">

     <From xsi:type="VariableSearchNode" Name="folderPath" Type="String"/>

   </List>

 </SearchNode>

 <OrderList IsAscending="true">

   <Item xsi:type="AttributeRef" ObjectTypeName="folderObject" AttributeTypeName="name"/>

 </OrderList>

</SearchConditions>

 

This search configuration returns a list of all objects which reference a single folder, specified by it's path. The results are returned sorted by the folder object name.

 

NOTE: Executing the command without the required parameter(s) results in an error, e.g., the one shown below:

<?xml version="1.0" encoding="utf-8" ?>

<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 'folderPath' (ERR1903)" />

<result>