2024-08-25 12:46:04 +03:00
|
|
|
FieldsStructure = New Structure;
|
|
|
|
FieldsStructure.Insert("TITLE" , "Planned sale");
|
|
|
|
FieldsStructure.Insert("TYPE_ID" , "GOODS");
|
|
|
|
FieldsStructure.Insert("STAGE_ID" , "NEW");
|
|
|
|
FieldsStructure.Insert("COMPANY_ID" , 1);
|
|
|
|
FieldsStructure.Insert("CONTACT_ID" , 3);
|
|
|
|
FieldsStructure.Insert("OPENED" , "Y");
|
|
|
|
FieldsStructure.Insert("ASSIGNED_BY_ID", 1);
|
|
|
|
FieldsStructure.Insert("PROBABILITY" , 30);
|
|
|
|
FieldsStructure.Insert("CURRENCY_ID" , "USD");
|
|
|
|
FieldsStructure.Insert("OPPORTUNITY" , 5000);
|
|
|
|
FieldsStructure.Insert("CATEGORY_ID" , 5);
|
|
|
|
FieldsStructure.Insert("BEGINDATE" , "2024-01-01");
|
|
|
|
FieldsStructure.Insert("CLOSEDATE" , "2030-01-01");
|
|
|
|
|
|
|
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreateDeal(URL, FieldsStructure);
|
|
|
|
|
|
|
|
FieldsStructure.Insert("TITLE" , "Another deal");
|
|
|
|
FieldsStructure.Insert("CLOSEDATE", "2031-01-01");
|
|
|
|
|
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
2024-09-16 19:14:17 +03:00
|
|
|
Token = "b529cb66006e9f06006b12e400000001000...";
|
2024-08-25 12:46:04 +03:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreateDeal(URL, FieldsStructure, Token);
|