You are viewing limited content. For full access, please sign in.

Question

Question

Capture due date to send by email

asked on April 12, 2023

Hi.

Is it possible to send the due date of a task by email?

 

Version 10.4

 

Task:

Email:

0 0

Answers

APPROVED ANSWER
replied on April 12, 2023

I can't speak for 10.4, but the option is in version 11.

1 0
SELECTED ANSWER
replied on April 12, 2023

I can confirm this token does not exist in Laserfiche 10.4. You have 3 options:

  1. Upgrade to 11 :)
  2. Use JS in the previous for to do the date calculation
    1. function calcNextWorkingDay(fromDate, days) {
          const count = 0;
          const toDate = new Date(fromDate);
          while (count < days) {
              toDate.setDate(toDate.getDate() + 1);
              if (toDate.getDay() != 0 && toDate.getDay() != 6) // Skip weekends
                  count++;
          }
          return toDate;
      }
  3. If you have a long running workflow in between the prior task and this new task you will have to calculate the date in that workflow prior to its completion.

    1. You can use the date calculator in a loop similar to the JS above to provide the next date as a token.

 

0 0
SELECTED ANSWER
replied on April 12, 2023

I can confirm this token does not exist in Laserfiche 10.4. You have 3 options:

  1. Upgrade to 11 :)
  2. Use JS in the previous for to do the date calculation
    1. function calcNextWorkingDay(fromDate, days) {
          const count = 0;
          const toDate = new Date(fromDate);
          while (count < days) {
              toDate.setDate(toDate.getDate() + 1);
              if (toDate.getDay() != 0 && toDate.getDay() != 6) // Skip weekends
                  count++;
          }
          return toDate;
      }
  3. If you have a long running workflow in between the prior task and this new task you will have to calculate the date in that workflow prior to its completion.

    1. You can use the date calculator in a loop similar to the JS above to provide the next date as a token.

 

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.