Question about work schedules.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BigBoss
    Member
    • Nov 2023
    • 86

    Question about work schedules.

    Hello, I have a small question regarding the programming of workflows and BPM. How can I restrict the sending of emails and the processing of workflows only on business days, for example, from Monday to Friday, from 08:00 to 19:00?
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    #2
    You can try and change the cron job execution time (Process Pending Flows) to something like below

    PHP Code:
    0 8-19 * * 1-5 
    
    Rabii
    Web Dev

    Comment

    • yuri
      Member
      • Mar 2014
      • 8453

      #3
      You can also utilize BPM that will check current date, if it's out of working time, then wait for the next day.

      You can also utilize working time calendar formula functions https://docs.espocrm.com/user-guide/...mula-functions to determine whether the time is working and calculate the next working time.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • BigBoss
        Member
        • Nov 2023
        • 86

        #4
        Thank you for your responses. As a programming beginner, I'm looking for a preconfigured BPM model or workflow. For instance, if a ticket remains in the "new" status after every 6 hours, the BPM sends a reminder email. However, the issue is that if a ticket is opened on Friday at 3:00 PM, the reminder is sent at 9:00 PM and then at 3:00 AM. In reality, I want the reminder to be sent on Monday at 10:00 AM, respecting weekends and working hours.

        Comment

        Working...