Flow Designer Trigger Scheduling

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2021 05:03 AM
Hi mates,
The business requirement is:
A flow needs to be scheduled every 6 months (Jan-15 and Jul-15) but using the Flow Designer triggers I can't schedule with that frequency.
My approach
I can use maybe the "Repeat" option every 180 days, but the "real day" won't be the 15th the next occurrence.
Ideas?
Can a run a Flow from a scheduled job? This approach will help me?
Thanks,
Ariel
- Labels:
-
flow designer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2021 05:24 AM
A scheduled script execution should work using FlowAPI to call the Flow.
You could also try putting a Monthly condition and setting the 15th as the day to run. At that point you could use an if statement to check if it is January or July (the date to string function may be able to help with that on the Trigger date time).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2021 06:23 AM
Hello mates,
I think if we use the Repeat every 180 days, It will work 2 times in a years.
you can use the schedule for this
you can get the month using getMonth method.
ex. var ans = false;
var gr = new GlideDateTime();
mon = gr.getMonth();
if(mon == 1)
{
ans = true;
}
using this script we can get a months
1 means = jan
2 means = fab
and so on.
Ragards,
Saurabh,