Flow Schedule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi @Chandrashekar ,
This was for your first requirement of running the flow every half an hour
if this is useful, please mark it as helpful...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago - last edited 4 hours ago
Hi @Chandrashekar ,
perhaps you will need more flows with the specific triggers.
For example - one flow running hourly, another one half-hourly, ... share what you created for a review.
EDIT: depending on the nature of the flow, perhaps the same behaviour can be achieved by scheduled job which might be easier to set triggers. And the flow seems to have trigger only to be triggered hourly but not to exclude the week days.
Try scheduled jobs:
No AI was used in the writing of this post. Pure #GlideFather only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
try trigger:
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hello @Chandrashekar ,
Yes this requirement can be done by flow designer,
Below I have shared my approach of doing this use case..
First Flow for triggering every 1 hour ->
If the action gives output as 'true', proceed with your further requirement.. ->
Custom action ->
Script ->
(function execute(inputs, outputs) {
var today = new GlideDateTime();
var dateOnly = today.getDate().getByFormat('yyyy-MM-dd');
// Build start and end times for today
var startTime = new GlideDateTime(dateOnly + ' 08:00:00');
var endTime = new GlideDateTime(dateOnly + ' 22:00:00');
// Current time
var checkTime = new GlideDateTime();
// Get day of week (1 = Sunday, 2 = Monday, ... 7 = Saturday)
var dayOfWeek = checkTime.getDayOfWeek();
// Compare time AND weekday
if (dayOfWeek >= 2 && dayOfWeek <= 6 && // Mon–Fri
checkTime.getNumericValue() >= startTime.getNumericValue() &&
checkTime.getNumericValue() <= endTime.getNumericValue()) {
outputs.is_within_range = 'true';
} else {
outputs.is_within_range = 'false';
}
})(inputs, outputs);
If my response helped mark as helpful and accept the solution..
