2024-08-22 20:32:05 +03:00
|
|
|
FieldsStructure = New Structure;
|
|
|
|
FieldsStructure.Insert("ADDRESS" , "Lermontov st., b. 20");
|
|
|
|
FieldsStructure.Insert("ADDRESS_COUNTRY", "Belarus");
|
|
|
|
FieldsStructure.Insert("TITLE" , "SuperClient");
|
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_URL"];
|
|
|
|
LeadID = FunctionParameters["Bitrix24_HookLeadID"];
|
2024-08-22 20:32:05 +03:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.UpdateLead(URL, LeadID, FieldsStructure);
|
|
|
|
|
|
|
|
FieldsStructure.Insert("NAME" , "Evgeniy");
|
|
|
|
FieldsStructure.Insert("LAST_NAME" , "Evgeniev");
|
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
|
|
|
LeadID = FunctionParameters["Bitrix24_LeadID"];
|
2024-08-22 20:32:05 +03:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.UpdateLead(URL, LeadID, FieldsStructure, Token);
|