Skip to main content
Version: 2.2.1

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
Requestweb/wwwroot/ws/java/administration/AddUserAbsenceRequestType.java
Returnweb/wwwroot/ws/java/administration/AddUserAbsenceResponseType.java

Request:

ID #RequiredDescription
AbsentUserXUser ID of the employee that will be absent
ResponsibleUserXUser ID of the assigned user for the tasks during the absence of the responsible user
InitialDateXAbsence start date
EndDateEnd date of the absence
ReasonReason 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
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
DetailSUCCESS: Record added.
FAILURE: message regarding the error that occurred.
CodeSUCCESS: 1.
FAILURE: Code regarding the error that occurred.
CodeDescription
32Absent User not entered
33Absent User not found
34Task Leader not entered
35Task Leader not found
36Start date not entered
37Start date entered incorrectly
38End date entered incorrectly
39End date cannot be prior to start date
40Start date cannot be earlier than current date
41Absent user cannot be the same as task leader
42There 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