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

editDepartment

Previous  Top  Next

This method makes it possible to edit the data of a department or business unit (if FGDEPTTYPE = 2). To edit these data, it is necessary to follow the standard documented below.

 

Java class

Request

web\wwwroot\ws\java\admin\EditDepartmentRequestType.java

Return

web\wwwroot\ws\java\admin\EditDepartmentResponseType.java

 

Request

ID #

Required

Description

ID

X

Department ID #

DESC

X

Department description

IDUPPER

 

Upper level department ID #

IDCOMPANY

 

ID # of the company where the department is defined

FGDEPTTYPE

 

Department type:

1 – Department;

2 - Business unit.

 

Return

ID #

Description

Return

SUCCESS:  Primary key of the department (CDDEPARTMENT)

FAILURE: -1

Status

SUCCESS: SUCCESS

FAILURE: FAILURE

Detail

SUCCESS: Record(s) updated.

FAILURE: Message regarding the error that occurred.

Code

SUCCESS: 1

FAILURE: Code regarding the error that occurred:

15 - Inexistent department.

43 - The ID # has no value.

52 - Inexistent organizational unit.

53 - Inexistent upper level organizational unit.

54 - The [%s1] is a sublevel of [%s2].

63 - The DESC field cannot be empty.

64 - Inexistent upper level department.