You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
16 lines
483 B
Plaintext
Vendored
16 lines
483 B
Plaintext
Vendored
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);
|