Im trying to get the new messages of the last 7 days. To point to the date I want, i use this :
formatDateTime(formatDateTime(addDays(utcNow(),-7),''))
which returns today's date minus 7.
But in the step im using, it uses the function
"newer_than"
which returns the id of a specific message.
How do I get the id of the latest message minus 7 days using the expressions ? I thought about parameters('id') if 'published_at' is lessorequals today-7, but i don't know quite how to do it...
if(lessOrEquals(parameters('published_at'),formatDateTime(formatDateTime(addDays(utcNow(),-7),''))),parameters('id'),false)
Thank you!

Report
All responses (
Answers (