addUserAbsence
This method allows adding:
- Absence period of a user;
- Task leader while the user is absent.
To insert each of these items, it is necessary to follow the standard documented below:
| Java class | |
|---|---|
| Request | web/wwwroot/ws/java/administration/AddUserAbsenceRequestType.java |
| Return | web/wwwroot/ws/java/administration/AddUserAbsenceResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| AbsentUser | X | User ID of the employee that will be absent |
| ResponsibleUser | X | User ID of the assigned user for the tasks during the absence of the responsible user |
| InitialDate | X | Absence start date |
| EndDate | End date of the absence | |
| Reason | Reason for absence |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:addUserAbsence>
<!--You may enter the following 5 items in any order-->
<urn:AbsentUser>?</urn:AbsentUser>
<urn:ResponsibleUser>?</urn:ResponsibleUser>
<urn:InitialDate>?</urn:InitialDate>
<!--Optional:-->
<urn:EndDate>?</urn:EndDate>
<!--Optional:-->
<urn:Reason>?</urn:Reason>
</urn:addUserAbsence>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID # | Description |
|---|---|
| Status | SUCCESS: SUCCESS FAILURE: FAILURE |
| Detail | SUCCESS: Record added. FAILURE: message regarding the error that occurred. |
| Code | SUCCESS: 1. FAILURE: Code regarding the error that occurred. |
| Code | Description |
|---|---|
| 32 | Absent User not entered |
| 33 | Absent User not found |
| 34 | Task Leader not entered |
| 35 | Task Leader not found |
| 36 | Start date not entered |
| 37 | Start date entered incorrectly |
| 38 | End date entered incorrectly |
| 39 | End date cannot be prior to start date |
| 40 | Start date cannot be earlier than current date |
| 41 | Absent user cannot be the same as task leader |
| 42 | There is at least one programmed absence in the period entered for this user |
caution
The values accepted for the import of dates must follow the following standard:
YYYY-MM-DD