Announcement

Collapse
No announcement yet.

Recurring tasks on a specific day of the week

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • victor
    replied
    Originally posted by animax View Post
    Hello EspoCRM team,

    I have set up recurring tasks with the help of the "Advanced Pack": daily, weekly, monthly, yearly. That all works great too.

    But now I need the following functions:
    - Recurring weekly on Mondays
    - Recurring dayly only Mo-Fr
    - Recurring monthly on the 1st day of the month
    - Recurring monthly on the last day of the month

    How can I set this up?

    At the moment I have set up a pulldown menu with the individual selection: No recurrence, daily, weekly, monthly, yearly

    Once the "Completed" status is selected, the rest is done by 4 workflows for daily, weekly, monthly, yearly​
    For this, I recommend you a service https://crontab.guru:
    - Recurring weekly on Mondays: https://crontab.guru/#0_0_*_*_1
    Code:
    0 0 * * 1
    - Recurring dayly only Mo-Fr: https://crontab.guru/monday-to-friday
    Code:
    0 0 * * 1-5
    If you meant only on Mondays and Fridays: https://crontab.guru/#0_0_*_*_1,5
    Code:
    0 0 * * 1,5
    - Recurring monthly on the 1st day of the month: https://crontab.guru/#0_0_1_*_*
    Code:
    0 0 1 * *
    - Recurring monthly on the last day of the month: you will most likely need three Workflows with different conditions:
    1. January, March, May, July, August, October, December: https://crontab.guru/#0_23_31_1,3,5,7,8,10,12_*
    Code:
    0 23 31 1,3,5,7,8,10,12 *
    2. February: https://crontab.guru/#0_23_28-29_2_*
    Code:
    0 23 28-29 2 *
    Once every 4 years he will work twice, but what can you do
    Although maybe someone from the community will tell you...

    3. April, June, September, November: https://crontab.guru/#0_23_30_4,5,9,11_*
    Code:
    0 23 30 4,5,9,11 *
    ​​
    Last edited by victor; 06-23-2023, 10:52 AM.

    Leave a comment:


  • esforim
    replied
    Hi there, I dont use Advanced Pack! I don't know. Food for thoughts:

    I'm not sure if you can get the name of the date, e.g. Monday. or Sat Sun

    If you can do that somehow that can take care of "Weekends" by using an ifThen formula, for example:

    ifThen(dateName==Sat, date=date+1)

    Leave a comment:


  • animax
    replied
    Hello,

    as I already wrote, I already use the "Advanced pack". Of course, the cron is also in use. However, I don't know how to implement this in concrete terms, so I'm asking for more details.​

    Leave a comment:


  • Kharg
    replied
    Using Advanced Pack and Cron you should be able to schedule tasks for the times you listed

    Leave a comment:


  • animax
    started a topic Recurring tasks on a specific day of the week

    Recurring tasks on a specific day of the week

    Hello EspoCRM team,

    I have set up recurring tasks with the help of the "Advanced Pack": daily, weekly, monthly, yearly. That all works great too.

    But now I need the following functions:
    - Recurring weekly on Mondays
    - Recurring dayly only Mo-Fr
    - Recurring monthly on the 1st day of the month
    - Recurring monthly on the last day of the month

    How can I set this up?

    At the moment I have set up a pulldown menu with the individual selection: No recurrence, daily, weekly, monthly, yearly

    Once the "Completed" status is selected, the rest is done by 4 workflows for daily, weekly, monthly, yearly​
Working...
X