mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-10 04:18:47 +02:00
23 lines
920 B
Plaintext
23 lines
920 B
Plaintext
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
|
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);
|
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
|
Token = "37d1fe66006e9f06006b12e400000001000...";
|
|
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);
|