Flow Schedule

Chandrashekar
Giga Contributor

Hello I have a requirement please do help

Requirement

Schedule a flow to run automatically every hour and another flow every 30 mins only between 8:00 AM and 10:00 PM (EST), on Monday through Friday

12 REPLIES 12

Hi there @GlideFather 

 

Good callout — let me clarify.

Sseparate scheduled flows (hourly / 30-min) are still the correct design if I'm not wrong, FDs Scheduled Trigger is limited for this frequency weekday-only execution.

The user need one additional layer:

  • Either a conditional script step inside the flow to check Mon–Fri and the time window like this 

(function execute(inputs, outputs) {
var now = new GlideDateTime();
var dow = now.getDayOfWeek(); // 1=Sun, 2=Mon...7=Sat
var start = new GlideDateTime(now.getDate().getByFormat('yyyy-MM-dd') + ' 08:00:00');
var end = new GlideDateTime(now.getDate().getByFormat('yyyy-MM-dd') + ' 22:00:00');

// Monday-Friday AND 08:00–22:00 EST
if (dow >= 2 && dow <= 6 &&
now.getNumericValue() >= start.getNumericValue() &&
now.getNumericValue() <= end.getNumericValue()) {
outputs.isValidWindow = true;
} else {
outputs.isValidWindow = false;
}
})(inputs, outputs);

 

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.

Kind Regards,
Azar
Serivenow Rising Star
Developer @ KPMG.

AnkaRaoB
Giga Guru

Hi @Chandrashekar  ,

 

Try this 

  1. Flow A → Runs every hour
  2. Flow B → Runs every 30 minutes
    • Only Monday–Friday
    • Only between 8:00 AM and 10:00 PM (EST)

 Flow A: Run every hour

Steps

  1. Open Flow Designer
  2. Create / open your flow
  3. Set Trigger = Scheduled
  4. Configure:
    • Run: Periodically
    • Repeat Interval: 1 Hour
    • Time zone: (choose your instance TZ or EST if required)
    • Start time: Any hour you prefer (e.g., 12:00 AM)

 That’s it — this flow runs every hour, 24×7.

 Flow B: Run every 30 minutes (business hours only)

Step 1: Trigger setup

  1. Open Flow Designer
  2. Create / open your second flow
  3. Set Trigger = Scheduled
  4. Configure:
    • Run: Periodically
    • Repeat Interval: 30 Minutes
    • Time zone: Eastern Time (EST/EDT)

Step 2: Add schedule restriction (IMPORTANT)

Under Schedule:

  • Select Run only during these hours
  • Choose:
    • Business days: Monday → Friday
    • Start time: 08:00
    • End time: 22:00
    • Time zone: Eastern Time

 This ensures the flow:

  •  Does NOT run at night
  •  Does NOT run on weekends
  •  Runs only within your window

 

 

If this response helps you solve the issue, please mark it as the Accepted Solution

OlaN
Tera Sage

Hi,

I believe everyone that's been answering this thread has misunderstood your requirement.

You want both the flows to only run within the given time slot, right?

The only difference is that one should be triggered every hour and the other one twice per hour.

 

As you have seen in all the answers there is no direct way to do this kind of limited execution, you'll need to apply a workaround of some sort. You'll need to script in some way to determine if it's time to run the execution or not.

As for the execution of the flow itself, either you do it as a regular flow with an action that checks if it's time to execute the rest.

Or you create a scheduled job with a conditional checker that checks the time-frame, and the triggers  a subflow with all the needed steps (or script the whole thing in the scheduled job if you want).