cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
olliehunter
Level: Powered On

Events created with "Create SharePoint List Item" action don't appear in Modern Events WebPart

I've discovered an interesting issue when you combine the use of Create SharePoint List Item in Flow and the Modern UI Events webpart. Here is the background to the issue:

 

Flow Process -->

  1. A new calendar appointment is created in an Exchange Shared Mailbox Calendar
  2. ---other stuff---
  3. Flow creates a new SharePoint calendar event at the same time as the calendar appointment 

This all works great, however, on one of the pages in the sharepoint site, I have a Modern Events webpart which is looking at the SharePoint event list where I created a new event in step 3. This webpart cannot display the events, even though they appear in the SharePoint calendar view. Now whats really really weird is that when I go to the event (in sharepoint) open it up and edit it without making any changes, the webpart now displays the event!

 

In order to test, I switched the flow from using the create item (SharePoint) block, to using the HTTP request block and supplying the field values directly to the API. The first time I did this I included the fields “Title”, “EventDate”, “EndDate” and “Location” (where I’m storing the ID of the Exchange event in case I need it later).

 

After running the request block successfully, I noticed that it was having the same issue (i.e. not appearing in the Events Web Part) so, frustrated, I opened and edited one of my test events (so that it would appear on the Web Part) and then examined it alongside a failed attempt through the API directly

 

As I described earlier, it appears that if you don’t pass a “fAllDayEvent” field, the api will set this automatically to “m:null="true", which is FINE for the API, but the Web Part apparently needs this in order to process the view

 

So passing “fAllDayEvent”: “false” in the JSON body of the REST API request sets the attribute correctly with the API and magically, the world is once again at piece.

 

It would appear (albeit as an assumption) that the “Create List Item” flow block doesn’t feel the need to set the fAllDayEvent field (there also isn’t a property value to set in the GUI). Probably this is because its creating a generic list item rather than an event item.

 

Anyhow, hope that this makes it to either someone who can fix it or someone that needs help!

5 REPLIES 5
Community Support Team
Community Support Team

Re: Events created with "Create SharePoint List Item" action don't appear in Modern Events WebPart

Hi @olliehunter ,

 

Could you share more details on this issue?

 

Some screenshots would be better for understanding.

 

Your flow is triggered by when a calendar appointment is created on Shared mailbox calendar. However, I am afraid that Shared mailbox calendar has not been supported yet. Could you share a screenshot of your flow?

 

I am trying to reproduce this issue, please share more details on the flow.

 

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.
olliehunter
Level: Powered On

Re: Events created with "Create SharePoint List Item" action don't appear in Modern Events WebPart

Hi  @v-yamao-msft

 

Annotation 2019-03-28 095116.png

The flow uses the above component connected to the shared mailbox account (which is used to authenticate) - i know that this is technically not a "shared mailbox" anymore, but until its supported officially, this works.

 

Annotation 2019-03-28 095430.png

This flow will run fine, and the event in sharepoint will be created, however the event will not appear in the web part

Annotation 2019-03-28 100618.png

Here is an example of an event that does appear in the webpart (created with api directly)

-<content type="application/xml">
-<m:properties>
<d:FileSystemObjectType m:type="Edm.Int32">0</d:FileSystemObjectType>
<d:Id m:type="Edm.Int32">74</d:Id>
<d:ServerRedirectedEmbedUri m:null="true"/>
<d:ServerRedirectedEmbedUrl/>
<d:ContentTypeId>0x01020067B1B7F564FC7542905AAD102FE64ED1</d:ContentTypeId>
<d:Title>TDA00001</d:Title>
<d:ComplianceAssetId m:null="true"/>
<d:Location></d:Location>
<d:Geolocation m:null="true"/>
<d:EventDate m:type="Edm.DateTime">2019-03-26T11:00:00Z</d:EventDate>
<d:EndDate m:type="Edm.DateTime">2019-03-26T12:00:00Z</d:EndDate>
<d:Description m:null="true"/>
<d:fAllDayEvent m:type="Edm.Boolean">false</d:fAllDayEvent>
<d:fRecurrence m:type="Edm.Boolean">false</d:fRecurrence>
<d:ParticipantsPickerId m:null="true"/>
<d:ParticipantsPickerStringId m:null="true"/>
<d:Category m:null="true"/>
<d:FreeBusy m:null="true"/>
<d:Overbook m:null="true"/>
<d:BannerUrl m:null="true"/>
<d:ID m:type="Edm.Int32">74</d:ID>
<d:Modified m:type="Edm.DateTime">2019-03-22T12:14:04Z</d:Modified>
<d:Created m:type="Edm.DateTime">2019-03-22T12:11:56Z</d:Created>
<d:AuthorId m:type="Edm.Int32">6</d:AuthorId>
<d:EditorId m:type="Edm.Int32">6</d:EditorId>
<d:OData__UIVersionString>1.0</d:OData__UIVersionString>
<d:Attachments m:type="Edm.Boolean">false</d:Attachments>
<d:GUID m:type="Edm.Guid"></d:GUID>
</m:properties>
</content>

and here is an example of one that doesn't appear:

-<content type="application/xml">
-<m:properties>
<d:FileSystemObjectType m:type="Edm.Int32">0</d:FileSystemObjectType>
<d:Id m:type="Edm.Int32">73</d:Id>
<d:ServerRedirectedEmbedUri m:null="true"/>
<d:ServerRedirectedEmbedUrl/>
<d:ContentTypeId>0x01020067B1B7F564FC7542905AAD102FE64ED1</d:ContentTypeId>
<d:Title>TDA0003</d:Title>
<d:ComplianceAssetId m:null="true"/>
<d:Location></d:Location>
<d:Geolocation m:null="true"/>
<d:EventDate m:type="Edm.DateTime">2019-03-28T11:00:00Z</d:EventDate>
<d:EndDate m:type="Edm.DateTime">2019-03-28T12:00:00Z</d:EndDate>
<d:Description m:null="true"/>
<d:fAllDayEvent m:null="true"/>
<d:fRecurrence m:type="Edm.Boolean">false</d:fRecurrence>
<d:ParticipantsPickerId m:null="true"/>
<d:ParticipantsPickerStringId m:null="true"/>
<d:Category m:null="true"/>
<d:FreeBusy m:null="true"/>
<d:Overbook m:null="true"/>
<d:BannerUrl m:null="true"/>
<d:ID m:type="Edm.Int32">73</d:ID>
<d:Modified m:type="Edm.DateTime">2019-03-22T12:11:55Z</d:Modified>
<d:Created m:type="Edm.DateTime">2019-03-22T12:11:55Z</d:Created>
<d:AuthorId m:type="Edm.Int32">6</d:AuthorId>
<d:EditorId m:type="Edm.Int32">6</d:EditorId>
<d:OData__UIVersionString>1.0</d:OData__UIVersionString>
<d:Attachments m:type="Edm.Boolean">false</d:Attachments>
<d:GUID m:type="Edm.Guid"></d:GUID>
</m:properties>
</content>

one of the clear differences is between:

<d:fAllDayEvent m:type="Edm.Boolean">false</d:fAllDayEvent> (in the visible version)

and

<d:fAllDayEvent m:null="true"/> (in the invisible version)

 

Hopefully this clears it up a bit.

 

Cheers

Ollie

Community Support Team
Community Support Team

Re: Events created with "Create SharePoint List Item" action don't appear in Modern Events WebPart

Hi @olliehunter ,

 

Thanks for updating.

 

I have made some research and test then I found that Event Web part requires the filed “All day event” to have a value, either true or false to show the event, which is blank when we initially create the event.

 

So we need to use action Send an HTTP request to SharePoint to update a value to the field, then the event will show up on the Events web part.

 

Here is a blog on how to set the All Day event field in Flow:

https://www.anupams.net/send-meeting-invites-sharepoint-online-calendar/

 

By the way, please share a URL of your flow, I will help collect and report this issue from my side.

 

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.
olliehunter
Level: Powered On

Re: Events created with "Create SharePoint List Item" action don't appear in Modern Events WebPart

Hi @v-yamao-msft,

 

Thanks for this, but as I said in my original post i've already switched to using the API to create the event. I just need someone to log this either with the SharePoint team.

 

Unfortunatly since i've updated my flow, theres no point in sharing the URL as it doesn't currently have the issue.

 

Cheers

Ollie

Community Support Team
Community Support Team

Re: Events created with "Create SharePoint List Item" action don't appear in Modern Events WebPart

Hi @olliehunter ,

 

Thanks for updating.

A URL of the flow would be helpful for us to check it on the backend. Anyway, I will help report this issue on my side.

 

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.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 135 members 5,408 guests
Please welcome our newest community members: