Article ID: 110516169

Setting up scheduled jobs

Tags:  IBM Domino

Your job should only be run on certain days and times of the week.

One example would be the automated reply message for emails received outside of business hours (Monday through Friday 9 a.m. – 5 p.m.).

Thus, the job should run all day on Saturdays and Sundays, or Monday through Friday before 9 a.m. and after 5 p.m.

Step by Step
IBM Domino Tips Juli 2012

Generate a formula rule that will become TRUE, if the email is received during business hours.

_officeday := @If(@Weekday(@now) = 2 | @Weekday(@now) = 3 | @Weekday(@now) = 4 | @Weekday(@now) = 5 | @Weekday(@now) = 6 ;@true; @false);

_officeday will become TRUE between Monday and Friday

Lotus Notes uses the following codes for weekdays:

1 = Sunday
2 = Monday
3 = Tuesday
4 = Wednesday
5 = Thursday
6 = Friday
7 = Saturday

The pipe symbol “|” is used for Boolean DISJUNCTIONS in Notes formulas.

_Hour:= @Hour (@Time (@Now));

Here, the hour (minutes are cut off) is determined

_officehour := @if (_Hour => 9 & _Hour < 17; @TRUE; @FALSE);

_ officehour becomes TRUE for times between 9 a.m. and 5 p.m.

_officeday & _officehour

The rule becomes TRUE, if _officeday and _officehour are both TRUE.

(“&“ for Boolean CONJUNCTIONS)

Figure 2
IBM Domino Tips Juli 2012

Create a notification template with a desired text

Figure 3
IBM Domino Tips Juli 2012

Configure the desired job (in this example, we used an Action Mail Job that automatically replies to incoming emails).

The priority should be selected in a way that ensures that the job is run after the anti-spam check.

The created rule “iQSuite – Office hours” should be set to negated dependency, to ensure that automated notifications are sent OUTSIDE of office hours. Further rules may be added as needed.

Figure 4
IBM Domino Tips Juli 2012

Since we are only interested in the email reply, we will keep our Notes formula set to @Success.

If you only want to notify the sender (Notify Sender on success Yes), select the notification template created for this.

Figure 5
IBM Domino Tips Juli 2012

Add the respective email addresses to “Memo from” and “Reply to”

All done!

Figure 6
IBM Domino Tips Juli 2012

If an email is received outside of business hours, the reply (view notification template) is automatically sent.

Figure 7
IBM Domino Tips Juli 2012

Automated reply

Last updated: 11 May 2016

« Previous article Next article »

Rate it

0/5 stars (0 votes)
Setting up scheduled jobs 0 5 0

Add a comment


Go back