1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-06-20 09:19:27 +02:00
Files
OpenIntegrations/docs/en/examples/Bitrix24/CreateUser.txt
T
Vitaly the Alpaca (bot) c7aa749dfe Main build (Jenkins)
2026-01-31 10:29:04 +03:00

23 lines
895 B
Plaintext
Vendored

URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
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 = "bafe5c69006e9f06006b12e400000001000...";
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);