Flow Designer Trigger Scheduling

arielgritti
Mega Sage

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.

find_real_file.png

 

Ideas?

Can a run a Flow from a scheduled job? This approach will help me? 

 

Thanks,

Ariel

2 REPLIES 2

Tony Cattoi
Mega Guru

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). 

Saurabh Gaikwad
Mega Expert

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,