Experimental

Download 15
Last updated Dec 22, 2024

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

FieldTypeNameDescription
sessionStringSessionRandomly generated GUID of the session.
actionString작업예: notify, create, update, delete, set_parent, unset_parent
statusStringStatuse.g. success, failure
dept_codeStringDepartment codee.g. 001122
dept_nameStringDepartment namee.g. Sales
dept_guidStringDepartment GUIDGUID of the department.
paramsMapParametersMap with parent_guid, parent_name, old_name, old_parent_name, old_parent_guid keys.
errorStringErrorError message.