deleteUserDepartment
This method allows deleting a relationship between the user, department, and position. To do so, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web\wwwroot\ws\java\admin\DeleteUserDepartmentRequestType.java |
Return | web\wwwroot\ws\java\admin\DeleteUserDepartmentResponseType.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:deleteUserDepartment>
<!--You may enter the following 3 items in any order-->
<urn:ID>?</urn:ID>
<urn:IDAREA>?</urn:IDAREA>
<urn:IDFUNC>?</urn:IDFUNC>
</urn:deleteUserDepartment>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
Return | SUCCESS:Â Primary key of the user (CDUSER) FAILURE: -1 |
Status | SUCCESS: SUCCESS FAILURE: FAILURE |
Detail | SUCCESS: Record(s) deleted FAILURE: message regarding the error that occurred. |
Code | SUCCESS: 1. FAILURE: Code regarding the error that occurred: â–ª 7 - Null user ID. â–ª 12 - Inexistent user. â–ª 13 - Null position ID #. â–ª 14 - Null department ID #. â–ª 15 - Inexistent department. â–ª 16 - Inexistent position. â–ª 19 - Inexistent relationship between department and position. â–ª 69 - User's default department. â–ª 70 - Inexistent relationship between user and department/position |