2024-08-13 14:04:54 +00:00
|
|
|
// The complete structure of the fields can be obtained by the GetTaskFieldsStructure() function()
|
|
|
|
|
|
|
|
CurrentDate = OPI_Tools.GetCurrentDate();
|
|
|
|
Hour = 3600;
|
|
|
|
Day = 24;
|
|
|
|
Responsible = 1;
|
|
|
|
|
|
|
|
TaskData = New Structure;
|
|
|
|
TaskData.Insert("TITLE" , "New task");
|
|
|
|
TaskData.Insert("DESCRIPTION" , "New task description");
|
|
|
|
TaskData.Insert("PRIORITY" , "2");
|
|
|
|
TaskData.Insert("DEADLINE" , CurrentDate + Hour * Day);
|
|
|
|
TaskData.Insert("RESPONSIBLE_ID", Responsible);
|
|
|
|
|
2024-08-13 19:25:14 +03:00
|
|
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2pp...";
|
2024-08-13 14:04:54 +00:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreateTask(URL, TaskData);
|
|
|
|
|
2024-08-13 17:25:31 +03:00
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
|
|
|
Token = "fe3fa966006e9f06006b12e400000001000...";
|
2024-08-13 14:04:54 +00:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreateTask(URL, TaskData, Token);
|