1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-21 01:50:24 +02:00
OpenIntegrations/docs/en/examples/Bitrix24/UpdateTask.txt

20 lines
769 B
Plaintext
Raw Normal View History

2024-08-13 13:35:37 +02: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");
URL = FunctionParameters["Bitrix24_URL"];
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
Result = OPI_Bitrix24.UpdateTask(URL, TaskID, TaskData);
OPI_TestDataRetrieval.WriteLog(Result, "UpdateTask (wh)", "Bitrix24");
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
TaskID = FunctionParameters["Bitrix24_TaskID"];
Result = OPI_Bitrix24.UpdateTask(URL, TaskID, TaskData, Token);