I have two power automate flows. Which I want to schedule to run alternatively e.g. if Flow X executes this week then next week Flow Y executes and Flow X shouln't. Means both flow biweekly but alternatively.
Is it possible to do this?
You can set each flow to run biweekly like this:
As you can see, you can set the start date, and then the repetition. In the screen shot you can see I set it to run each 2 weeks on Monday.
You can set your first flow to start, let's say, today, to run each 2 weeks on Monday; then you go to your second flow and set it the same, but set the start date as one week from now.
Related
Is it possible to use a Timer trigger to run an Azure function 2 days before end of month?
I tried 0 0 0 L-2 * *, but it is not allowed.
Invalid Cron Expression.
When I use https://crontab.cronhub.io/ with my cron expression, I get my expected result At 12:00 AM, 2 days before the last day of the month.
Unfortunately, as per your requirement as there is no CORN expression that can help in your case.
You need to create a custom solution by creating a timer trigger function that would be running every day. You need to write your custom logic to validate whether current date is equal to last or second last day of the month. If it is true then inside the condition you can write your business logic for further processing.
Refer to similar case (where customer want to avoid the execution of workflow on first and last day of the month) to implement your custom logic.
I have a Azure data factory pipeline that load data of every working day(Run every working day). I want to trigger my pipeline every working day (Mon-Fry) between working hour(9am to 6pm) and hourly.
It should run as daily at 9am then 10am then 11am--------at 6pm.
I have tried tumbling window trigger but I think it does not support time period for trigger interval
In your trigger, you can select a recurrence of one week, then select the working days and then the hours you are interested in.
The recurrence patterns in ADF and Logic Apps don't directly support this combination of requirements. You are certainly welcome to attempt this in an ADF pipeline, but I find Logic Apps to be much easier for this sort of action. Below is an example of how you might configure it:
Create a Logic App with a Recurrence Trigger
In the Trigger, change the Frequency to Day and specify the hours and timezone:
Calculate the day of the week
Us the following expression (change to the appropriate timezone) to extract the day of the week into a variable:
dayOfWeek(convertFromUtc(utcNow(), 'Eastern Standard Time'))
This will return an integer where 0 = Sunday, 1 = Monday, etc.
Add condition based on the day of the week
Use the dayOfWeek integer variable to determine which days to act (or ignore). In this example, I'm exceluding days 0 (Sunday) and 6 (Saturday):
Execute the data factory
In the True condition, execute your data factory (do nothing in the False condition):
I'm creating a report that will have to show the actual time of arrival versus what was scheduled, and I'm trying to figure out a way to have it working properly. Obviously there are different scheduled times of arrival and the formatting should also take into consideration the following:
Showing one color if the person is early or up to 59 seconds after the scheduled time: e.g. scheduled at 8:00:00 it should still show as compliant be it that the person arrives at 7:55:00 or that arrives at 8:00:45
Showing another color if the person arrives any moment from exactly one minute later to five minutes later: e.g. scheduled at 7:00:00 and the person arrives any time between 07:01:00 and 07:05:00
Showing another color if the person arrives any moment from five minutes one second onwards: e.g. scheduled at 9:00:00 and arrives at 09:05:01
Scheduled times of arrival can be changed on a day's notice, therefore it should ideally be checking against it "constantly", here you can find a sketch of what I mean
I've been bashing my head on this for a while but I cannot come up with anything that actually works, it's just a mess of what looks almost random formatting taking place.
please refer below screenshot samples for the same
Select One Cell That Where do you want to apply conditional format and start below method.
Creating New Rule
Select "Format only cells that contain" option.
Applying 1st Condition
Applying 2nd Condition
Applying 3rd Condition
Cross Check The Order and Cell Reference
Note:
In the above conditional format formula i have taken formula reference from Scheduled Timing =$F4 and added some values to adjust the timings as per your requirements. so please review it properly.
And use "$" to freezing the cell Row or column properly.
For applying it in all Cells use Format Painter and then apply.
Follow the same steps in your work book and get it success.
To Know more about conditional formatting with formulas: Click Here
I am trying to create weekly cron expression which will execute every week on selected days like Mon,Tue. Along with this I have to implement repeat every functionality with it. So that trigger would be fired after repeat every interval.
eg. I have to execute job every Monday and alternate week in case when interval value is 2.
When interval value is 3 I have to execute this job every Monday after 2 weeks.
This functionality is easily achieved in case of Daily or monthly, but I am not able to find it in case of weekly.
eg. Cron for daily and repeat every interval as 3
0 0 12 1/3 * ? *
You cannot do that with cron expressions.
Your best bet is to use the WithCalendarIntervalSchedule() method to specify the intervals in weeks you want the trigger to happen:
ITrigger trigger = TriggerBuilder.Create()
.WithIdentity("trigger1", "group1")
.StartNow()
.WithCalendarIntervalSchedule(
scheduleBuilder => scheduleBuilder.WithIntervalInWeeks(3))
.Build();
Instead of StartNow(), you will also have to use StartAt(), and find a way to get the date of the next Monday (using for example Jon Skeet answer from this question: Datetime - Get next tuesday)
http://www.cronmaker.com/
This (or any similar) page can help you, for example, if you set it to every 14 days.
I have a worksheet that is a schedule, and I'm trying to create a graphical display [not chart] of how many people are working per hour window. Before I added the dates, which needed to be done so that shifts starting in the evening and going over midnight could be computed, it was working fine except for midnight shifts. The formula I was using is:
=SUMPRODUCT(F$53:F$67>=($C86+INT(F$5)),F$69:F$83<($D86+INT(F$5)))
Before the date addition, this was working fine[Except for the aforementioned problem]:
=SUMPRODUCT(F$53:F$67>=$C86,F$69:F$83
To where, $C86, is the start time 1-Feb 0:00, and $D86, is the end time 1-Feb 0:59. +INT(F$5) changes the date from 1-feb to an integer to be added to the hour time blocks. I also tried using COUNTIFS to no avail.
Screencap:
First off, is the way I am computing this possible? Secondly, is there a better way to do this? Thanks.