1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-24 05:36:29 +02:00
Vitaly the Alpaca (bot) d972986846 Main build (Jenkins)
2024-09-27 21:04:12 +03:00

23 lines
815 B
Plaintext

// 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);
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
Result = OPI_Bitrix24.CreateTask(URL, TaskData);
URL = "b24-ar17wx.bitrix24.by";
Token = "c3abf666006e9f06006b12e400000001000...";
Result = OPI_Bitrix24.CreateTask(URL, TaskData, Token);