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.
Is there a way I can spoof the start/end dates so that they appear to be 24 hours apart?
Thanks
Rob
Solved! Go to Solution.
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:
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:
Best regards,
Alice
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:
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:
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:
Best regards,
Alice
@v-yuazh-msft - much better idea than mine 🙂
@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)
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)
Using your solution and a combination of a condition actually solved my issue for group calender all day event 🙂
Thank you @gbcon9
User | Count |
---|---|
89 | |
40 | |
23 | |
20 | |
16 |
User | Count |
---|---|
130 | |
50 | |
48 | |
35 | |
26 |