mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-18 23:48:56 +02:00
25 lines
681 B
Plaintext
25 lines
681 B
Plaintext
URL = FunctionParameters["Bitrix24_URL"];
|
|
TaskID = FunctionParameters["Bitrix24_ElapsedTaskID"];
|
|
|
|
Time = 3600;
|
|
|
|
Result = OPI_Bitrix24.AddTaskTimeAccounting(URL, TaskID, Time);
|
|
|
|
OPI_TestDataRetrieval.WriteLog(Result, "AddTaskTimeAccounting (wh)", "Bitrix24");
|
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
|
|
|
Text = "Time spent on work";
|
|
UserID = 10;
|
|
Time = 7200;
|
|
SetupDate = AddMonth(OPI_Tools.GetCurrentDate(), -1);
|
|
|
|
Result = OPI_Bitrix24.AddTaskTimeAccounting(URL
|
|
, TaskID
|
|
, Time
|
|
, UserID
|
|
, Text
|
|
, SetupDate
|
|
, Token);
|