I
I
Ivan Pavlov2020-02-04 14:03:23
Bitrix24
Ivan Pavlov, 2020-02-04 14:03:23

How to select leads by time (from 06:00 pm to 09:00 am) for each day in Bitrix24?

How to select leads by time (from 18:00 to 09:00) for each day?

That is, I need to filter out leads that come during non-working hours (from 18 pm of the current day to 09 am of the next day)

. day, and I need for a period (week, month, year)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Paimurzin, 2020-02-04
@rusellsystems

the current date can be obtained in php
and used in the filter:

"filter": {
    ">DATE_CREATE": "2019-08-08T18:00:00+03:00",
    "<DATE_CREATE": "2019-08-09T09:00:00+03:00"
  },

it will be something like this
$date = new DateTime();
$date1 = new DateTime('+1 day');

"filter": {
    ">DATE_CREATE": $date->format('Y-m-d')."T18:00:00+03:00",
    "<DATE_CREATE": $date1->format('Y-m-d')."T09:00:00+03:00"
  },

A
Aliy Kunashev, 2020-03-01
@askunash

Looking for reports? If there is no access to a standard field with the necessary data, then you need to create your own in crm and write in it as a robot or BP after the fact.
You can then use this field to filter on kanban, list, or reports.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question