Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
saurabhspowar
Contributor
Contributor

Custom Trigger for QMC task

We want to schedule a task every 3rd day of the month also we need conditional check that if 3rd day comes on Sunday task should run on next day that is 4th day of the month. Is it possible.

Labels (1)
  • QMC

1 Solution

Accepted Solutions
steeefan
Luminary
Luminary

No, that's not possible directly in the QMC. You would have to create a separate scheduler application and do your checks in there:

IF (Day(TODAY()) = 3 AND WeekDay(TODAY()) <> 6) OR (DAY(TODAY()) = 4 AND WeekDay(TODAY()) = 0)
  TRACE Reload;
ELSE
  TRACE No reload;
  call ThrowException('Error: reload schedule error.');  // Fake error
END IF

Then for the actual app you want to reload, link it's trigger to this scheduler app.

View solution in original post

2 Replies
steeefan
Luminary
Luminary

No, that's not possible directly in the QMC. You would have to create a separate scheduler application and do your checks in there:

IF (Day(TODAY()) = 3 AND WeekDay(TODAY()) <> 6) OR (DAY(TODAY()) = 4 AND WeekDay(TODAY()) = 0)
  TRACE Reload;
ELSE
  TRACE No reload;
  call ThrowException('Error: reload schedule error.');  // Fake error
END IF

Then for the actual app you want to reload, link it's trigger to this scheduler app.

saurabhspowar
Contributor
Contributor
Author

Thank you for the solution. Will give a try.