cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

How to edit an event in outlook calendar

Hi

I want to Remove/Delete the location from my Meeting (event) in Outlook Calendar. I don't know how to remove a single value(Location) So I thought if i would update the event with all default values which are already there in the calendar and Change Location to blank string it will remove location. But couldn't figured out how to pass Start , End  and Time Zone values to the formula? 

 

1. User clicks on a button the Event from within the Gallery

2. Button has the following formula at OnSelect Property

 

Office365.V4CalendarPatchItem(MyCalendar, MeetingsGallery.Selected.Id, MeetingsGallery.Selected.Subject, Start, End,

Time Zone, {Location: ""})

 

I don't know what to get and reference the values for bold text in above formula

 

Any idea please

 

Regards.

 

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: How to edit an event in outlook calendar

Hi @AppDeveloper ,

Do you want to update an event?

Based on your description, do you mean that you do not know all the information of this event, so you can not fill in completely Office365.V4CalendarPatchItem function?

So I suggest you firstly get all the information that you want.

You could use V3CalendarGetItem function.

Try this:

Office365.V3CalendarGetItem(MyCalendar, MeetingsGallery.Selected.Id)

Then you could get Start , End  and Time Zone values.

To sum up, you could try:

Office365.V4CalendarPatchItem(MyCalendar, 
                              MeetingsGallery.Selected.Id, MeetingsGallery.Selected.Subject,
               Office365.V3CalendarGetItem(MyCalendar, MeetingsGallery.Selected.Id).Start time,
               Office365.V3CalendarGetItem(MyCalendar, MeetingsGallery.Selected.Id).End time, 
               Office365.V3CalendarGetItem(MyCalendar, MeetingsGallery.Selected.Id).Time Zone, 
               {Location: ""})

Here's a doc about this function for your reference:

https://docs.microsoft.com/en-us/connectors/office365/#graphcalendareventclientreceive

 

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper III
Helper III

Re: How to edit an event in outlook calendar

Hi, @

 

Thanks for Idea, I did try but no luck so far. Every time i try this formula it give me different errors. What about Patch() function. Can this be of any use and how? to get Caledar Name as table name argument in Patch function?

 

Regards

Shahzad

Highlighted
Helper III
Helper III

Re: How to edit an event in outlook calendar

Hi @v-yutliu-msft 

 

I am still working on it with different ways. I did the following 

1. I created a button which will update the location in the Outlook Calendar. On this button first formula will collect a collection with all fields of the selected Item in the list. the formula is below which is working fine.

 

ClearCollect(myItem,Office365Outlook.V3CalendarGetItem(MyCalendar, MeetingsGallery.Selected.Id));

 

2. OnSelect of the same button next formula is as follows.

 

Office365Outlook.V4CalendarPatchItem(MyCalendar, myItem.id, myItem.subject,
myItem.start time,
myItem.End Time, 
myItem.Time zone,
ThisItem.Location.DisplayName:""
);

 

This is the formula which is giving me a lots of errors. but before explaining that please note that first argument (MyCalendar) is my local variable with Calendar id only, all other values I got from my collection which is created with the same button at first stage

ERRORS:

 

1. on MyItem.Id all other fields with initial capital letters its  (like Id with Capital, Start etc)it says  "This identifier isn't recognised"

2. if I changed it to small letters it says. "expecting a text value instead"

 

Any solution to this problem Please.

 

 

 

 

 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,711)