mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-02-03 13:22:19 +02:00
16 lines
483 B
Plaintext
16 lines
483 B
Plaintext
URL = FunctionParameters["Bitrix24_URL"];
|
|
|
|
Name = "Main department";
|
|
ParentID = 1;
|
|
|
|
Result = OPI_Bitrix24.CreateDepartment(URL, Name, ParentID);
|
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
|
|
|
Name = "Subordinate department";
|
|
ParentID = FunctionParameters["Bitrix24_HookDepID"];
|
|
HeadID = 1;
|
|
|
|
Result = OPI_Bitrix24.CreateDepartment(URL, Name, ParentID, HeadID, Token);
|