1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-23 22:05:15 +02:00
Files
OpenIntegrations/docs/en/examples/Bitrix24/UpdateUser.txt
Vitaly the Alpaca (bot) 11e3216280 Main build (Jenkins)
2025-10-29 21:59:54 +03:00

25 lines
890 B
Plaintext
Vendored

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