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"; Token = "b529cb66006e9f06006b12e400000001000..."; Result = OPI_Bitrix24.CreateDeal(URL, FieldsStructure, Token);