getRootRecordId

Gets the root record ID for a module.

Parameters

moduleName
The name of the module.
objectTypeName
The name of the object type. Leave as an empty string for all objects.

Returns

A ResponseHelper that contains the name and the record ID of the root is returned.

Errors

ModuleDoesNotExistException
The module does not exist.
ObjectTypeDoesNotExistException
The object type does not exist.
InvalidArgumentException
At least one of the arguments is invalid.
RecordDoesNotExistException
The record ID does not exist.
java.lang.Exception
A system error occurred when the request was being processed.

Sample request

<soapenv:Envelope 
	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 	xmlns:ws="http://ws.tririga.com">
   <soapenv:Body>
      <ws:getRootRecordId>
         <ws:moduleName>Location</ws:moduleName>
         <ws:objectTypeName>triSpace</ws:objectTypeName>
      </ws:getRootRecordId>
   </soapenv:Body>
</soapenv:Envelope>

Sample response

<soap:Envelope 
	xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <getRootRecordIdResponse xmlns="http://ws.tririga.com">
         <out>
            <key xsi:nil="true" xmlns="http://dto.ws.tririga.com"/>
            <name xmlns="http://dto.ws.tririga.com"/>
            <recordId xmlns="http://dto.ws.tririga.com">-1</recordId>
            <status xsi:nil="true" xmlns="http://dto.ws.tririga.com"/>
            <value xmlns="http://dto.ws.tririga.com">10002873</value>
         </out>
      </getRootRecordIdResponse>
   </soap:Body>
</soap:Envelope>