getObjectTypeActions

Gets the available actions for the boId, guiId, and record ID.

Parameters

moduleId
The module ID.
recordId
The record ID of the object. Set the value as "-1" for the default available actions.
objectTypeId
The objectType ID of the action you want to retrieve.
guiId
The GUI ID of the actions you want to retrieve.

Returns

An array of ObjectTypeAction objects is returned.

Errors

InvalidArgumentException
At least one of the arguments that are passed in are invalid or the user does not have access to the business object.
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:getObjectTypeActions>
         <ws:moduleId>7</ws:moduleId>
         <ws:objectTypeId>106402</ws:objectTypeId>
         <ws:recordId>-1</ws:recordId>
         <ws:guiId>10002361</ws:guiId>
      </ws:getObjectTypeActions>
   </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>
      <getObjectTypeActionsResponse xmlns="http://ws.tririga.com">
         <out>
            <boActionSteps xmlns="http://dto.ws.tririga.com">
               <ObjectTypeActionStep>
                  <action>triCreateDraft</action>
                  <actionId>0</actionId>
                  <label>Create Draft</label>
                  <objectTypeActionSteps>
                     <ObjectTypeActionStep>
                        <action>triCreateDraft</action>
                        <actionId>58565</actionId>
                        <label>Create Draft</label>
                        <objectTypeActionSteps xsi:nil="true"/>
                     </ObjectTypeActionStep>
                  </objectTypeActionSteps>
               </ObjectTypeActionStep>
               <ObjectTypeActionStep>
                  <action>triActivate</action>
                  <actionId>0</actionId>
                  <label>Activate</label>
                  <objectTypeActionSteps>
                     <ObjectTypeActionStep>
                        <action>triActivate</action>
                        <actionId>99023</actionId>
                        <label>Activate</label>
                        <objectTypeActionSteps xsi:nil="true"/>
                     </ObjectTypeActionStep>
                  </objectTypeActionSteps>
               </ObjectTypeActionStep>
            </boActionSteps>
            <guiId xmlns="http://dto.ws.tririga.com">10002361</guiId>
            <moduleId xmlns="http://dto.ws.tririga.com">7</moduleId>
            <objectTypeId xmlns="http://dto.ws.tririga.com">106402</objectTypeId>
            <recordId xmlns="http://dto.ws.tririga.com">-1</recordId>
         </out>
      </getObjectTypeActionsResponse>
   </soap:Body>
</soap:Envelope>