editUserDepartment
This method allows editing the relationship between the user, department, and position associated with a user. If the user already has a default department, it will be replaced and the new one will be considered the default. To use it, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web\wwwroot\ws\java\admin\EditUserDepartmentRequestType.java |
Return | web\wwwroot\ws\java\admin\EditUserDepartmentResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
ID | X | User ID. |
IDAREA | X | Department ID #. |
IDFUNC | X | Position ID #. |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:editUserDepartment>
<!--You may enter the following 3 items in any order-->
<urn:ID>?</urn:ID>
<urn:IDAREA>?</urn:IDAREA>
<urn:IDFUNC>?</urn:IDFUNC>
</urn:editUserDepartment>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
return | SUCCESS: Created user primary key. FAILURE: -1 |
Status | SUCCESS: SUCCESS FAILURE: FAILURE |
Code | SUCCESS: 1. FAILURE: Code regarding the error that occurred. |
RecordId | SUCESS: User ID (ID #). FAILURE: N/A |
RecordKey | SUCESS: Modified primary key of the user. FAILURE: N/A |
Code | Description |
---|---|
-1 | Unexpected error. |
12 | Inexistent user. |
15 | Inexistent department. |
16 | Inexistent position. |
17 | Inexistent relationship between department and position. |