- Contents
Interaction Designer Help
DataManager Query
This System tool returns contacts from Data Manager. The tool can return the available contact sources and attributes or contacts from a particular source. Querying for sources would be used when querying a special source used as a catalog service. When querying for contacts from a particular source, the schema will allow for sparse data so that fields not requested do not cause the documents to be unnecessarily large.
The XML input parameter must be in a particular format to return the correct data.
Inputs
XML Node
Select an XML node for your query in one of the following formats:
Input Source Query Format
<query>
<querymode>source</querymode>
</query>
Input Contact Query Format
<query>
<querymode>contact</querymode>
<rowlimit>1000</rowlimit>
<owner>id</owner>
<filter>ID=5</filter>
<sortorder>ID</sortorder>
<timeout>20000</timeout>
<source>outlook</source>
<attributes>
<field>FirstName</field>
<field>LastName</field>
... additional fields
</attributes>
</query>
Outputs
XML Node
Select the an XML Node to output the results of the query. The results will be in one of the following formats:
Output Source Result Format
<sources>
<source>
<name>outlook</name>
<attributes>
<field>FirstName</field>
<field>LastName</field>
... additional fields
</attributes>
</source>
... additional sources
</sources>
Output Contact Result Format
<contacts>
<contact>
<FirstName>First1</FirstName>
<LastName>Last1</LastName>
... additional fields
</contact>
... additional contacts
</contacts>
Exit Paths
Success
This path is taken if the query is successfully run.
Failure
This path is taken if the query fails.