getNamedQueryType

Gets the type of query. Can be used to determine whether to call runNamedMetricQuery or runNamedQuery.

Parameters

moduleName
The name of the module.
objectTypeName
The name of the objectType.
queryName
The name of the query.

Returns

A string value that contains the report type is returned.

Errors

ModuleDoesNotExistException
The module does not exist.
QueryDoesNotExistException
The query does not exist.
AccessException
The user does not have access to the module, business object, or query.
java.lang.Exception
A system error occurred when the request was being processed.

Sample request

<soap:Envelope
          xmlns:soap=http://www.xxx/soap-envelope
          xmlns:ws="http://ws.tririga.com">
   <soap:Header/>
   <soap:Body>
      <ws:getNamedQueryType>
         <!--Optional:-->
         <ws:moduleName>triMetricFact</ws:moduleName>
         <!--Optional:-->
         <ws:objectTypeName>triBuildingFact</ws:objectTypeName>
         <ws:queryName>triBuildingFact - Related Report - Building Summary (Building Fact )</ws:queryName>
      </ws:getNamedQueryType>
   </soap:Body>
</soap:Envelope>

Sample response

<soap:Envelope
          xmlns:soap="http://www.xxx/soap-envelope">
   <soap:Body>
      <ns1:getNamedQueryTypeResponse xmlns:ns1="http://ws.tririga.com">
         <ns1:out>Metric</ns1:out>
      </ns1:getNamedQueryTypeResponse>
   </soap:Body>
</soap:Envelope>