I am looking to add a condition to one of my existing flows to only run if an email arrives on the last Monday of the month. This should look at the date in the Eastern time zone, if that helps. As I mentioned, I already have a flow to create my attachments in SharePoint, so that part is done.
Any assistance is greatly appreciated!
I can't think of a suitable Expression here to directly determine whether the current mail receiving date is the last Monday of this month.
However, consider using a combination of Condition and Expression to determine if the current date is the expected one, and if so, execute the following action.
ticks(formatDateTime(adddays(concat(add(int(formatDateTime(utcNow(), 'yyyy')),if(equals(formatDateTime(utcNow(), 'MM'), '12'), 1, 0) ),'-',add(int(formatDateTime(utcNow(), 'MM')),if(equals(formatDateTime(utcNow(), 'MM'), '12'), -11, 1) ),'-01T08:00Z'),-1),'yyyy-MM-ddTHH:mm'))
You could consider testing this Flow on Monday.
Please take a try.
Hi @ScottR-MT ,
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.
Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.
The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.