ExecuteQuery
Retrieve data from a query
XML output = queryDef.ExecuteQuery () const
Parameters
None.
Return values
output
Output XML document
Remarks
The query supports four types of campaigns:
- select
- get
- getIfExists
- count
Examples
var query = xtk.queryDef.create(
<queryDef schema="xtk:workflow" operation="select">
<select>
<node expr="@internalName"/>
</select>
<where>
<condition expr="[folder/@name]='wfExamples'"/>
</where>
<orderBy>
<node expr="@internalName" sortDesc="false"/>
</orderBy>
</queryDef>
)
var res = query.ExecuteQuery()
for each (var w in res.workflow)
logInfo(w.@internalName)
Features

