D
D
dmitru2020-05-22 07:26:58
Bitrix24
dmitru, 2020-05-22 07:26:58

What needs to be written so that the robot in B24 will work on the next business day at a certain time?

Hello. Tell me what code to write so that the robot would work the next working day at 10-00.
https://helpdesk.bitrix24.ru/open/5428897/ I can't find such an example here.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Kovalenko, 2020-06-01
@dmitru

Dmitry, if you do not take into account the weekend, then:
{{=dateadd({=System:Date},"1d10h")}}
If you need to understand that this is a working day, and the working day depends, among other things, on the portal settings, then use it in conjunction with AddWorkDays. The help says:

Syntax: =addworkdays([date to add days to], [number of workdays to add])

That is, take a variable, get the date, then just add 10h to it, following the example above. Also look at WorkDateAdd, the link you provided to the article has everything you need)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question