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 SharePoint Cale...
Power Automate
Unanswered

Create SharePoint Calendar Event

(0) ShareShare
ReportReport
Posted on by 8

I posted about this a few weeks ago but didn't get a response so trying again after tinkering with it on my own. I have a form that I am using in which employees set a date range (select two dates using date picker). My Flow then sends the item for approval, and if approved will send a confirmation email and add a row to an Excel table. I also want it to add an event to a Sharepoint Calendar. The problem I am running into, is once it hits SharePoint, instead of being entered as it is supposed to (ie. June 16 to June 17) it will set the start to 5 PM of the day before then run the same duration (instead of June 16 12 AM to June 17 11:59PM it will enter as June 15 at 5 PM to June 16 at 5 PM). Looking at it, the output of the flow should be correct, but it is still entered in SharePoint wrong. Any advice appreciated, screenshots below for reference.

Completed flow input/ output for the add item stepCompleted flow input/ output for the add item stepSharepoint Calendar EntrySharepoint Calendar EntryWhole Flow for ReferenceWhole Flow for Reference

Categories:
I have the same question (0)
  • Verified answer
    ccc333ab Profile Picture
    1,144 on at

    Did some testing and it appears that the Create Item Start/Date times will get scheduled in UTC time. So I converted the time I would like to make the event for to UTC and it worked. 

     

    Here is an example (I put in variables just so you can see it running). 

    • strStartTime I set to June 18
    • strEndTime I set to June 19th.
    • I am in the Mountain Time zone. 

    ccc333ab_0-1623970966715.png

    ccc333ab_1-1623971127145.png

     

    Of note, without the time zone convert, the event got scheduled at 6:00. Here you can see it is now scheduled at the proper time. 

     

    ccc333ab_3-1623971240505.png

     

     

     

     

  • djfg Profile Picture
    8 on at

    Appreciate the response! That worked for getting the correct days. Do you know how to set the end time for 11:59 PM on the end day? Otherwise it now shows as ending at 12 AM of the 2nd day. I know there is no way to set all day events with this method so hoping I can do that as a workaround.

  • ccc333ab Profile Picture
    1,144 on at

    How about just subtracting a second off the time, using the expression: 

    addSeconds(variables('strEndTime'),-1)
  • djfg Profile Picture
    8 on at

    That worked, thanks!

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