2025-07-06 01:01:25 +03:00
|
|
|
CurrentDate = OPI_Tools.GetCurrentDate();
|
|
|
|
|
|
|
|
|
|
// Full filter structure you can find at GetTasksFilterStructure method
|
|
|
|
|
Filter = New Map;
|
|
|
|
|
Filter.Insert("CREATED_BY", 1); // Producer with ID 1
|
|
|
|
|
Filter.Insert("!RESPONSIBLE_ID", 10); // Performers with ID not equal to 10
|
|
|
|
|
Filter.Insert(">=CREATED_DATE ", CurrentDate - 60 * 60 * 24); // Creation date >= yesterday
|
|
|
|
|
|
|
|
|
|
Fields = New Array;
|
|
|
|
|
Fields.Add("UF_CRM_TASK");
|
|
|
|
|
Fields.Add("CREATED_BY");
|
|
|
|
|
|
|
|
|
|
Indent = 1;
|
2025-10-20 19:41:52 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_URL"];
|
2025-07-06 01:01:25 +03:00
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.GetTasksList(URL, Filter, , , Fields);
|
|
|
|
|
|
2025-10-20 19:41:52 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
|
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
2025-07-06 01:01:25 +03:00
|
|
|
|
|
|
|
|
Result = OPI_Bitrix24.GetTasksList(URL, , Indent, Token);
|