Skip to main content
Version: 2.2.0

newAttachmentAction

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

Java class
Requestweb/wwwroot/ws/java/timecontrol/NewAttachmentActionRequestType.java
Returnweb/wwwroot/ws/java/timecontrol/NewAttachmentActionResponseType.java

Request:

ID #RequiredDescription
ActionPlanIDXID # of the action plan to which the action belongs.
ActionIDXAction ID #.
FileNameXFile name (with extension).
FileContentXBinary content of the file (Base64binary)
AttachmentNameName of the attachment
SummarySummary

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:timecontrol">
<soapenv:Header/>
<soapenv:Body>
<urn:newAttachmentAction>
<!--You may enter the following 6 items in any order-->
<urn:ActionPlanID>?</urn:ActionPlanID>
<urn:ActionID>?</urn:ActionID>
<urn:FileName>?</urn:FileName>
<urn:FileContent>cid:853581610789</urn:FileContent>
<urn:AttachmentName>?</urn:AttachmentName>
<urn:Summary>?</urn:Summary>
</urn:newAttachmentAction>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
StatusReturns the status of the execution. SUCCESS on success and FAILURE on failure.
CodeReturns the execution code:
â–ª 1 - File attached 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 - The current status of the action does not allow uploading files;
â–ª -14 - Invalid file name;
â–ª -15 - Impossible to find file;
â–ª -16 - File format not supported;
â–ª -17 - File size exceeded;
â–ª -18 - An error has occurred when attaching the file;
â–ª -19 - The current status of the action plan does not allow uploading files to the action;
DetailSUCCESS: Method executed successfully
FAILURE: Description of the error that was found.
RecordKeyRecord code generated.

Return structure:

<newAttachmentActionResponse>
<Status>?</Status>
<Code>?</Code>
<Detail>?</Detail>
<RecordKey>?</RecordKey>
</newAttachmentActionResponse>