cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
NitinSarad
Level: Power Up

All Day Event in a SharePoint Calendar is not recognized as a legit column in Flows

I am trying to copy data from one SharePoint Calendar to another but for some reason it is not recognizing the default All Day Event column in the calendar. Looking for some solution I found a work around using "Send an HTTP request to SharePoint", but infortunately its not working as well. Now rather than moving the complete Calendar item I am trying to move the value of the default All Day Event (while pulling up the XML structure it states that its column name is fAllDayEvent) to another string column (AllDay) and vice versa, in the same calendar (to test if this works). But I am facing a lot of issues. I have attached the screenshot below for reference: 

img 1.png

But it gives me the following as an output instead:

img 2.PNG

Can somebody please guide me with this issue.

 

I can provide more details if needed.

 

Link I am trying to refer to: - https://sharepoint.stackexchange.com/questions/245456/create-new-sharepoint-online-calendar-event-us...

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: All Day Event in a SharePoint Calendar is not recognized as a legit column in Flows

Hi @NitinSarad ,

 

Do you want to sync SharePoint Calendar events from one calendar1 to calender2, including All day events?

 

I have made the following flow with action Send an HTTP request for your reference.

 

Add the trigger When an item is created on TestCalendar.

 

Initialize two String variables, Test1 and Test2.

 

As SharePoint event trigger doesn’t have a dynamic content to check if the event is an All day event, so we need to add a Condition to check it.

 

Input the following code in the condition:

 

equals(formatDateTime(triggerBody()?['EventDate'],'HH:mm:ss'),'00:00:00')

is equal to

True

 

 

equals(formatDateTime(triggerBody()?['EndDate'],'HH:mm:ss'),'23:59:00')

is equal to

True

 

 

If the new event meets the condition, then it is an All day event, under If yes branch, add action Set variables with the following code:

Test1:

formatDateTime(triggerBody()?['EventDate'],'yyyy-MM-dd')

Test2:

formatDateTime(triggerBody()?['EndDate'],'yyyy-MM-dd')

Add action Send an HTTP request to SharePoint. Please make sure is configured likes below:

 

{

"__metadata": {

"type" : "SP.Data.TestCalendar2ListItem"},

"fAllDayEvent" : "True",

"EventDate" :”@variables(‘Test1’)”

"EndDate" :"@variables(‘Test2’)"

}

 

 

Under if no branch, add action Create item to add the event to TestCalendar2.

 

Images for your reference.

1.PNG2.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Community Support Team
Community Support Team

Re: All Day Event in a SharePoint Calendar is not recognized as a legit column in Flows

Hi @NitinSarad ,

 

Do you want to sync SharePoint Calendar events from one calendar1 to calender2, including All day events?

 

I have made the following flow with action Send an HTTP request for your reference.

 

Add the trigger When an item is created on TestCalendar.

 

Initialize two String variables, Test1 and Test2.

 

As SharePoint event trigger doesn’t have a dynamic content to check if the event is an All day event, so we need to add a Condition to check it.

 

Input the following code in the condition:

 

equals(formatDateTime(triggerBody()?['EventDate'],'HH:mm:ss'),'00:00:00')

is equal to

True

 

 

equals(formatDateTime(triggerBody()?['EndDate'],'HH:mm:ss'),'23:59:00')

is equal to

True

 

 

If the new event meets the condition, then it is an All day event, under If yes branch, add action Set variables with the following code:

Test1:

formatDateTime(triggerBody()?['EventDate'],'yyyy-MM-dd')

Test2:

formatDateTime(triggerBody()?['EndDate'],'yyyy-MM-dd')

Add action Send an HTTP request to SharePoint. Please make sure is configured likes below:

 

{

"__metadata": {

"type" : "SP.Data.TestCalendar2ListItem"},

"fAllDayEvent" : "True",

"EventDate" :”@variables(‘Test1’)”

"EndDate" :"@variables(‘Test2’)"

}

 

 

Under if no branch, add action Create item to add the event to TestCalendar2.

 

Images for your reference.

1.PNG2.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
NitinSarad
Level: Power Up

Re: All Day Event in a SharePoint Calendar is not recognized as a legit column in Flows

Mabel, that was really clever. Let me give it a try and will get you an update for sure.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 375 members 4,786 guests
Please welcome our newest community members: