Hi,
I have a deskbooking app whereby, when booking, the below adds a calendar event based on some variables.
Office365Outlook.V4CalendarPostItem("Calendar", If(!IsBlank(LondonDelPerson), LondonDelPerson.DisplayName, User().FullName)&", Desk "& Buttontext &", London"& ", "&LDN_Date_Picker.SelectedDate, Text(DateAdd(DateTimeValue(LDN_Date_Picker.SelectedDate & " 08:00:00"), TimeZoneOffset(), Minutes),"mm/dd/yyyy hh:mm"), Text(DateAdd( DateTimeValue(LDN_Date_Picker.SelectedDate & " 18:00:00"), TimeZoneOffset(), Minutes),"mm/dd/yyyy hh:mm"), "(UTC) Coordinated Universal Time", {body: "Thank you for booking your desk",isAllDay:true, requiredAttendees:If(!IsBlank(LondonDelPerson), LondonDelPerson.Mail, User().Email)});
I want to use Office365Outlook.CalendarDeleteItem_V2 to remove this event from the reservee's calendar when they cancel the booking in the app (this is done on a Remove command from the Dataverse table). I have started using the CalendarDeleteItem_V2 command but it is asking for the event ID... a) how do I find this and b) how can I have it as a variable so that only the event they are cancelling gets removed from their Outlook calendar?
Any ideas how I can achieve this?
Thanks
K