I want to add a variable into the number of days to subtract a date from.
Current expression:
formatDateTime(addDays(utcNow(),-1), 'yyyy-MM-dd')
To-Be expression: (error: The expression is invalid)
formatDateTime(addDays(utcNow(),-variables('XDays')), 'yyyy-MM-dd')
Instead of a fixed "-1", I want to replace this with a variable, which I have the String and Integer format.
May I know what is the correct expression to implement this? Thank you

Report
All responses (
Answers (