web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Cancel Calendar event ...
Power Apps
Unanswered

Cancel Calendar event sent to users Outlook Calendar when clicking a button

(0) ShareShare
ReportReport
Posted on by 65

Hi all,

 

Currently have a desk booking app that we want to have set up to remember the users chosen desk booking, and then if needed at a later date they can click cancel and it will automatically remove/cancel it in their Outlook calendar.

 

So far what I have set up and working is:

 

A collection called DeskBookings. When the user selects their desk and chosen date, it will run this to grab the Outlook Event ID and store it in the collection:

 

Collect(DeskBookings, Office365Outlook.V4CalendarGetItems(
 LookUp(
 Office365Outlook.CalendarGetTablesV2().value,
 name = "Calendar"
 ).id
 ).value
);

 

When they click cancel, it does this: 

 

Office365Outlook.CalendarDeleteItemV2(LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name, ThisItem.'Outlook Event ID');

Remove(DeskBookings,LookUp(DeskBookings, "Outlook Event ID" = ThisItem.'Outlook Event ID'));

 

It seems to cancel the invitation in Outlook which works, but I can't seem to get the collection to remove it from the row.

 

The problem I'm facing (I think) is that the collection increases by 100-200 rows for every booking and now it is at 3200+ rows, the performance seems to be running a little slower. Luckily this is just in my test version of the app so it's not effecting anyone, but still I need to figure out how to either filter the collection or have it automatically remove rows from the collection once they click cancel.

 

Any ideas, or even suggestions on how the above could be improved?

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard