Skip to main content
Version: 2.2.0

getAttachmentAction

This method enables downloading the attachments from the action of an action plan. To use it, it is necessary to follow the standard documented below:

Java class
Requestweb/wwwroot/ws/java/timecontrol/GetAttachmentActionRequestType.java
Returnweb/wwwroot/ws/java/timecontrol/GetAttachmentActionResponseType.java

Request:

ID #RequiredDescription
ActionPlanIDXID # of the action plan to which the action belongs.
ActionIDXAction ID #.
FileNameFile name (with extension).
Note: If no name is entered, every attachment in the action will be searched.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:timecontrol">
<soapenv:Header/>
<soapenv:Body>
<urn:getAttachmentAction>
<!--You may enter the following 3 items in any order-->
<urn:ActionPlanID>?</urn:ActionPlanID>
<urn:ActionID>?</urn:ActionID>
<urn:FileName>?</urn:FileName>
</urn:getAttachmentAction>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
ReturnSUCCESS: Array with attachments:
â–ªFileName - File name
â–ªFileContent - Binary content of the file
StatusReturns the status of the execution. SUCCESS on success and FAILURE on failure.
CodeReturns the execution code:
â–ª 1 - Method executed successfully;
â–ª -1 - Error in the configuration of the input parameters;
â–ª -2 - ID # of the plan or action is duplicated in the database;
â–ª -3 - The authentication user does not have the necessary permission to execute this method. Check if the user has access to the PL025 menu.
â–ª -10 - Action plan not found;
â–ª -11 - Action not found;
â–ª -12 - The authentication user does not have the necessary permission;
â–ª -13 - No results found;
DetailSUCCESS: Method executed successfully
FAILURE: Description of the error that was found.

Return structure:

<getAttachmentActionResponse>
<Return>
<AttachmentList>
<Attachment>
<FileName>?</FileName>
<FileContent>?</FileContent>
</Attachment>
<Attachment>
<FileName>?</FileName>
<FileContent>?</FileContent>
</Attachment>
</AttachmentList>
</Return>
<Status>?</Status>
<Code>?</Code>
<Detail>?</Detail>
</getAttachemntActionResponse>