web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Formula issue : always...
Power Automate
Answered

Formula issue : always getting invalid expression

(0) ShareShare
ReportReport
Posted on by 26

Hello, I am using the action "Get calendar view of events (v3) and i'm trying to export on excel all calendar events that happened during last week. For the start time works ok, for the end time, i tried inserting this formula: 

 

addDays(utcNow(), -1 * (dayOfWeek(utcNow()) + 1), 'yyyy-MM-ddT23:59:59') 

 

But the action says it's invalid. I'm now pretty sure it's not the formula itself but a problem with the webapp as every new suggestion from CHAT GPT does not work and is always saying "invalid". 

 

Any idea ? 

invalid expression.png
Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @matthieudumont ,

    Please try this expression:

    addDays(utcNow(),mul(add(dayOfWeek(utcNow()),1),-1), 'yyyy-MM-ddT23:59:59')

     

    Best Regards,

    Sunshine Gu

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard