1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-23 21:29:38 +02:00
2024-08-23 09:03:08 +03:00

25 lines
916 B
Plaintext

URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
UserID = "232";
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", 1);
Result = OPI_Bitrix24.UpdateUser(URL, UserID, UserStructure);
URL = "b24-ar17wx.bitrix24.by";
Token = "6476c766006e9f06006b12e400000001000...";
UserID = "234";
Email = String(New UUID) + "@exepmple.org";
UserStructure = New Structure;
UserStructure.Insert("EMAIL" , Email);
UserStructure.Insert("NAME" , "Oleg");
UserStructure.Insert("LAST_NAME" , "Lama");
UserStructure.Insert("UF_DEPARTMENT" , 7);
Result = OPI_Bitrix24.UpdateUser(URL, UserID, UserStructure, Token);