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 / Trying to automate Out...
Power Automate
Unanswered

Trying to automate Outlook Calendar Event from Excel Table

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I'm trying to create Outlook calendar events based on an excel table I have. The issue I'm having is the End Time. I can't seem to figure out the expression for addDays. I want the End Time to be 14 days after my Due Date(which is pulled from the table). Here's my flow:

 

Screen Shot 2021-06-23 at 4.53.04 PM.png

Categories:
I have the same question (0)
  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    Hi @Anonymous 

    Thank you for posting.

    Excel stores internally the dates in a number format, so to use them in flow need to convert that integer to a date.

    I created a simple flow and can create event that End time is 14 days after Due Date.

    You can refer to the screenshots as below:

    vLilyWmsft_0-1624501613454.png

    Use the following formula to get the correct date from excel.

    Expression: formatDateTime(addDays('1899-12-30',int(items('Apply_to_each')?['Due Date'])),'yyyy-MM-dd')

    vLilyWmsft_1-1624501613401.png

    Use the following formula to fill in the date that is 14 days after Due Date in the End time

    Expression: addDays(outputs('Compose'),14,'yyyy-MM-dd')

    vLilyWmsft_2-1624501613954.png

     

    Then save Flow and can test it.

    This is my Excel

    vLilyWmsft_3-1624501613734.png

    After Flow runs, two event will be created as below:

    vLilyWmsft_4-1624501613568.jpeg

    Hope the content above may help you.

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    on at

    Thank you @v-LilyW-msft. That worked wonderfully. 

    I have another question regarding this. The excel file I have gets updated weekly and I want my calendar events to stay updated with them. Is there a way to just update the events without making new ones?

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard