Hi everyone,
I’m new to Power Automate, and trying to create a variable in Power Automate Desktop that returns the number of the previous month, in order to fill a SAP field.
However, after testing multiple approaches, the variable always ends up not returning nothing.
Expressions that I tried:
Month(AddMonths(Today(), -1))
Month(AddToDate(Today(), 0, -1, 0))
I tested this by inserting this variable in the SAP field and it didn't fill nothing. I thought that it could be some problem related to SAP, so insted I tested using the "Get clipboard text" and opening a Word document, and then copying, but it also doesn't return nothing, so I think the problem must be with the variable.
Any help? Thanks in advance!