changeOrganizationalUnitStatus
This method allows enabling or disabling an organizational unit or department. For this operation, it is necessary to follow the standard documented below.
| Java class | |
|---|---|
| Request | web\wwwroot\ws\java\administration\ChangeOrganizationalUnitStatusRequestType.java |
| Return | web\wwwroot\ws\java\administration\ChangeOrganizationalUnitStatusResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| ID | X | Organizational unit or department ID #. |
| fgdeptenabled | Operation code (1 - Enable, 2 - Disable). If no value is entered, the record status will be edited regardless of the current status. |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:changeOrganizationalUnitStatus>
<!--You may enter the following 2 items in any order-->
<urn:ID>?</urn:ID>
<urn:fgdeptenabled>?</urn:fgdeptenabled>
</urn:changeOrganizationalUnitStatus>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID # | Description |
|---|---|
| Status | SUCCESS: SUCCESS FAILURE: FAILURE |
| Detail | SUCCESS: Action successfully executed FAILURE: Message regarding the error that occurred |
| Code | SUCCESS: 1. FAILURE: Code regarding the error that occurred |
| Code | Description |
|---|---|
| 43 | The ID # has no value |
| 52 | Inexistent organizational unit/department |
| 74 | The record already is in the entered status |
| 0 | The fgdeptenabled field accepts only the (1,2) values It is not possible to disable the record as there are users related to the department There should be a whole numeric value in the fgdeptenabled field |