cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rob_CTL
Helper V
Helper V

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
v-yuazh-msft
Community Support
Community Support

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

 

 

 

 

View solution in original post

8 REPLIES 8
ScottShearer
Super User III
Super User III

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
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
v-yuazh-msft
Community Support
Community Support

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

 

 

 

 

View solution in original post

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

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Thanks @v-yuazh-msft

JimmyWork
Power Participant
Power Participant

@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
New Member

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)

JimmyWork
Power Participant
Power Participant

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

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

Thank you @gbcon9 

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (38,355)