sonar-sync-departments
Synchronizes department objects based on the given input records, deleting departments that don't exist in the input record set.
The input records should contain the fields dept_code, dept_name, parent_dept_code, and description. This command does not synchronize the department boss field, and you must use the sonar-sync-bosses command after using the sonar-sync-employees command.
sonar-sync-departments [run=RUN]
- run=RUN
- Execute API call only if value is 't'
Output Fields
Field | Type | Name | Description |
---|---|---|---|
session | String | Session | Randomly generated GUID of the session. |
action | String | 작업 | 예: notify, create, update, delete, set_parent, unset_parent |
status | String | Status | e.g. success, failure |
dept_code | String | Department code | e.g. 001122 |
dept_name | String | Department name | e.g. Sales |
dept_guid | String | Department GUID | GUID of the department. |
params | Map | Parameters | Map with parent_guid, parent_name, old_name, old_parent_name, old_parent_guid keys. |
error | String | Error | Error message. |