I need to create SharePoint list item from Outlooks event from PowerApps. The form has a Date Picker & a Button named "Sync Data". User will select date and click the "Sync Data" button then below functionality will be done
1. Get all Events from Outlook Calendar for Selected date .
2. For all events check the Event ID is already in the SharePoint list or not.
3. If Event ID is not in SharePoint list then create an item in SharePoint list with necessary data.
5. If events have no "Required Attendees" then create a list item for event Organizer.
6. If events have "Required Attendees" then create separate list item for Organizer and also separate list item for each attendee. ( one attendee one row).
My SharePoint list name is DailyActivities and column structure is given below
| Column Name | Column Type | Notes | Column's name from Event |
| Title | Single line of text | | subject |
| StartDate | DateTime | | start |
| EndDate | DateTime | | end |
| Description | Multi line of text | | body (which is coming HTML) |
| Location | Choice | | location |
| Participants | Person (allow multiple) | | requiredAttendees |
| Organizer | Person (single) | | organizer |
| ActivityFor | Person (single) | here the value will be Organizer and when there will be attendees then a each attendee | |
| | | | |
I have used below code to to collect events from Outlook Calendar but can not put date filtering
ClearCollect(CalendarEventsForSync,Sort(Office365Outlook.V4CalendarGetItems("Calendar").value,start,Descending));
Then remove the items from collection if Event ID is already in SharePoint List (DailyActivities)
RemoveIf(CalendarEventsForSync,id in DailyActivities.EventID);
I am stuck filtering data from Outlook Calendar by date selected, and save data in SharePoint list with upper conditions.
I appreciate your urgent help. Its very urgent for me.
Thanks!