Scheduled Events - Multiple Schedules

0
Hi Everyone,   I have a scheduled event set up to pull updated data from an API query. It's currently set to run every 2 hours, but I'd like to find a way to have it run every 5 minutes during business hours e.g. 8.00am to 6.00pm and then revert to every 2 hours overnight. The idea here is that the 5 minute runs will keep my app updated for users during he working day and the overnight runs will capture the odd transaction that might take place during down hours.   Is there a way to set up multiple schedules in this way?   Thanks in advance!
asked
1 answers
0

You would need to schedule the microflow to run every 5 minutes. 

 

At the start of your microflow you could check the time. If it's not in working hours, you could check the time to see if it matches your two-hour criteria - maybe by checking if the hour is divisible by 2, and the current minutes is 0. If it doesn't match, then drop out of the microflow before calling the API.

 

I hope this helps.

answered