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 / Create Event - How to ...
Power Automate
Unanswered

Create Event - How to create an all day event in Outlook from SharePoint list date column?

(1) ShareShare
ReportReport
Posted on by

Hi,

 

I am trying to add an all day event into an Outlook calendar based on a single date column within a SharePoint list.  The issue I am having is that the "Create Event v2" connector has specified both the "Start Date" and "End Date" as mandatory.  In these fields I am using the dynamic content to pull the date from the SharePoint list.  However the Flow fails because there is not 24 hours between both the Start and End date.

 

datafail.jpg

 

Is there a way I can spoof the start/end dates so that they appear to be 24 hours apart?

 

Thanks

Rob

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    This works for me...

    I am using the created date as a proxy for your date column.

    Here is what I used for the start time:

    startOfDay(triggerBody()?['Created'])
     
    Here is what I used for the End Time
    addHours(startOfDay(triggerBody()?['Created']),24)
     
    I have all day event set to yes.
     
    My Flow using the above settings worked without error and created an all day event.
     
    If this solves your issue, please mark your post as Solved.
     
    Scott
  • Verified answer
    v-yuazh-msft Profile Picture
    on at

    Hi @Rob_CTL,

     

    I have made a test on my side and have created a "EndDate" column in the sharepoint list.

    Please refer to screenshot below to createthe flow:

    Capture.PNG

     

    The expression in the End time field of the "Create event(V2)" action as below:

    addSeconds(triggerBody()?['EndDate'],2)

    The flow would run successfully as below:

    Capture.PNG

     

     

    Best regards,

    Alice

     

     

     

     

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @v-yuazh-msft - much better idea than mine 🙂

  • Rob_CTL Profile Picture
    on at

    Thanks @v-yuazh-msft

  • JimmyW Profile Picture
    2,563 on at

    @v-yuazh-msft Sorry fro replaying in a old thread but im trying to find a solution for the "Create a group event" as i cannot set time or do anything with that trigger i dont see how i can book one day event on the same day.

     

    I get the following error.

    Your request can't be completed. The duration of an event marked as All day must be at least 24 hours.

     

    I did try the solution below. And the  i get the following error instead.

    Your request can't be completed. The Event.End property for an all-day event needs to be set to midnight.

    addSeconds(triggerBody()?['EndDate'],2)
  • gbcon9 Profile Picture
    4 on at

    This got me pointed in the right direction. I finally got it figure out for myself and thought I'd share... The email goes out at 8 am pacific, so I don't need to adjust for utc.

     

    startOfDay(utcNow())

     

    addHours(startOfDay(utcNow()),24)

  • JimmyW Profile Picture
    2,563 on at

    @gbcon9 Did you get this to work with a "Create a group event" also?

  • JimmyW Profile Picture
    2,563 on at

    Using your solution and a combination of a condition actually solved my issue for group calender all day event 🙂

    Thank you @gbcon9 

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