1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-21 01:50:24 +02:00
OpenIntegrations/docs/en/examples/Bitrix24/CreateDepartment.txt

18 lines
550 B
Plaintext
Raw Normal View History

2024-08-13 13:35:37 +02:00
 URL = FunctionParameters["Bitrix24_URL"];
Name = "Main department";
ParentID = 1;
Result = OPI_Bitrix24.CreateDepartment(URL, Name, ParentID);
OPI_TestDataRetrieval.WriteLog(Result, "CreateDepartment (wh)", "Bitrix24");
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);