Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Help with formatdatetime(adddays()) function following an email

(0) ShareShare
ReportReport
Posted on by 27

Hello,

 

I am working on creating a flow where, when I receive an email, a calendar event is set up 1 day from the event.

I've tried a few expressions and still get errors.

Any help is appreciated!!

 

what I am currently trying:

formatdaytime(adddays(triggerOutputs()?['body/receivedDateTime'],1,'MM/dd/yyyy'))

Have also tried this without success:

if(empty(triggerOutputs()?['body/receivedDateTime']),null,formatdaytime(adddays(triggerOutputs()?['body/receivedDateTime'],1,'MM/dd/yyyy')))

 

swinnings_1-1668712394921.png

 

  • swinnings Profile Picture
    27 on at
    Re: Help with formatdatetime(adddays()) function following an email

    Not sure how that happened, but thank you! It seems to be working!

  • Verified answer
    srApps Profile Picture
    306 on at
    Re: Help with formatdatetime(adddays()) function following an email

    One thing that stands out is the expression you're using. It should be formatDateTime (not daytime). You may also want it to be a full date time value like 2022-11-17T08:00:00. If you don't include the time it will be created with a start time and end times of midnight.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1