2024-08-13 14:04:54 +00:00
|
|
|
// The complete structure of the fields can be obtained by the GetTaskFieldsStructure() function()
|
|
|
|
|
|
|
|
TaskData = New Structure;
|
|
|
|
TaskData.Insert("TITLE" , "Another task title");
|
|
|
|
TaskData.Insert("DESCRIPTION", "Another task description");
|
|
|
|
TaskData.Insert("PRIORITY" , "1");
|
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_URL"];
|
|
|
|
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
2024-08-13 14:04:54 +00:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.UpdateTask(URL, TaskID, TaskData);
|
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
|
|
|
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
2024-08-13 14:04:54 +00:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.UpdateTask(URL, TaskID, TaskData, Token);
|