Navigation:  Integration via SOAP web services > Published web services > Administration >

changeOrganizationalUnitStatus

Previous  Top  Next

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.

 

Return

ID #

Description

Status

SUCCESS: SUCCESS

FAILURE: FAILURE

Detail

SUCESS: Action successfully executed

FAILURE: Message regarding the error that occurred

Code

SUCCESS: 1

FAILURE: Code regarding the error that occurred

 

Code

Description

43

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