1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/Bitrix24/UpdateUser.txt

25 lines
914 B
Plaintext
Raw Normal View History

2025-01-18 17:35:34 +03:00
 URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
2025-03-17 22:58:06 +03:00
UserID = "1776";
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);
2024-09-21 10:57:02 +03:00
URL = "b24-ar17wx.bitrix24.by";
2025-03-17 22:58:06 +03:00
Token = "2f89d867006e9f06006b12e400000001000...";
UserID = "1778";
Email = String(New UUID) + "@exepmple.org";
UserStructure = New Structure;
2025-03-06 20:58:59 +03:00
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);