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

Notifications

Announcements

Community site session details

Community site session details

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

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 ? 

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard