B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Query Folder | Summary of Elements in this Folder | wm.tn.query:doQuery
 
wm.tn.query:doQuery
Executes a query based on the details you provide in the input parameters. After executing the query, you can execute the wm.tn.query:getQueryResults service to get the resulting data of the query.
Input Parameters
queryInput
Document The filter criteria for the query, the sort order, and the column names that must be returned in the result set. For the structure of queryInput, see wm.tn.rec:queryInput.
queryType
String The query type. Use one of the following values based on the query type:
*1 - Document Query. Creates a query for documents saved in the Trading Networks database.
*2 - Event Query. Queries the Trading Networks database for activity log entries.
*3 - Task Query. Creates a query for delivery and service execution tasks.
*4 - Profile Query. Creates a query for partner profiles in the Trading Networks database.
locale
String Optional. The locale for formatting the query results. Specify the two-letter ISO 639 language code for the language to use, and the two-letter ISO 3166 country code for the country that is associated with the language.
Use the format: <languagecode>_<countrycode>
For example, to localize for US English, set the locale as 'en_US'.
queryIdToCancel
String Optional. The ID of a previously executed query to terminate. If the query is still executing, then the service terminates the query execution, immediately. If the query is done executing, then the service deletes the results from the service cache, immediately.
IsMWS
String Optional. Defines whether the service is called from My webMethods Server or from a user using Designer. Valid values are:
*yes - Default. My webMethods Server calls the service.
*no - A user using Designer calls the service.
Output Parameters
queryOutput
Document The output details of the executed query. For the structure of queryOutput, see wm.tn.rec:queryOutput.
svcResponse
Document Conditional. The error messages, warnings, and other information that the service generated. For the structure of svcResponse, see wm.tn.rec:svcResponse.
Usage Notes
The criteria for Extended Fields of profile query type should use FieldGroupName:FieldName in the fieldName (queryInput > criteria > fields > fieldName) field.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release