2024-09-21 10:57:02 +03:00
|
|
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
2024-08-13 14:04:54 +00:00
|
|
|
Email = String(New UUID) + "@exepmple.org";
|
|
|
|
// The full structure can be obtained with the function GetUserFieldsStructure
|
|
|
|
|
|
|
|
UserStructure = New Structure;
|
|
|
|
UserStructure.Insert("EMAIL" , Email);
|
|
|
|
UserStructure.Insert("UF_DEPARTMENT", 7);
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreateUser(URL, UserStructure);
|
|
|
|
|
2024-09-21 10:57:02 +03:00
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
2024-10-19 12:02:34 +03:00
|
|
|
Token = "78821367006e9f06006b12e400000001000...";
|
2024-08-13 14:04:54 +00:00
|
|
|
Email = String(New UUID) + "@exepmple.org";
|
|
|
|
|
|
|
|
UserStructure = New Structure;
|
|
|
|
UserStructure.Insert("EMAIL" , Email);
|
|
|
|
UserStructure.Insert("NAME" , "Vitaly");
|
|
|
|
UserStructure.Insert("LAST_NAME" , "Alpaca");
|
|
|
|
UserStructure.Insert("PERSONAL_MOBILE", "88003553535");
|
|
|
|
UserStructure.Insert("UF_DEPARTMENT" , 1);
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreateUser(URL, UserStructure, Token);
|