Forum Discussion
SharePoint Event Web Part Doesn't Work
- Nov 09, 2018
I found out that the Events web part requires the field "All Day Event" to have a value, either true or false to show the event (it is blank when we initially create the event). To update this field in Flow after creating the event, we need to use REST API using the "Send an HTTP request to SharePoint" action. Once you assign a value to the field, the event will show up in the Events web part. Please reference the below link (Mark Invites as Full Day Event section) for the steps to set the "All Day Event" field in Flow.
https://www.anupams.net/send-meeting-invites-sharepoint-online-calendar/
I've been fighting with this all day and I can't seem to get it to work.
I'm sure I making a mistake but I can't seem to find where.
1- Since your list name has spaces. In the REST API use _x0020_ to represent the spaces. So your Body JSON should be
{
"__metadata": {
"type" : "SP.Data.Birthdays_x0020_and_x0020_AnniverseriesListItem"},
"fAllDayEvent" : "False"
}
2- If you are setting the fAlldayEvent to True, you must also set the EventDate and EndDate similar to the blog I included otherwise you will get an error
- Dean_GrossNov 30, 2018Silver Contributor
Spaces in SharePoint are evil, and the cause of untold amount of frustration. Try to avoid them when creating new sites, libraries, and lists.
- John LathburyNov 12, 2018Brass ContributorThank you!
I wasn't thinking and tried %20 instead of _x0020_
It works perfect now!