GetPastTime - Previous Month action variable

Michael Druedal Larsen Aug 10, 2022
41 People Read
Power automate actions

Disclosure:  

In a Power Automate flow I made recently, I needed to get the previous month in a variable.

After fooling around with a Float variable and subtracting 1 from the month, which was a stupid solution, as this would give a wrong month when January comes 🤣.

I then found the GetPastTime expression, when used in a function can subtract 1 month from the current month, this can do the job neatly.

GetPastTime description

Disclosure: