1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-15 11:56:36 +02:00

25 lines
918 B
Plaintext
Raw Normal View History

2024-11-02 22:50:30 +03:00
 URL = "https://b24-ar17wx.bitrix24.by/rest/1/yg2...";
2024-12-01 22:17:07 +03:00
UserID = "1148";
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";
2024-12-01 22:17:07 +03:00
Token = "c7944c67006e9f06006b12e400000001000...";
UserID = "1150";
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);