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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

outlook

(0) ShareShare
ReportReport
Posted on by 416

hello power users.

I want to edit or update  existing outlook calendar event from power app with lookup and event id

any idea?

 

thank you 

 

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Himanshu_90677,

    In this scenario, I could only show you to edit the calendar event of the current user.

    Here is the simple demo for your reference.

     

    1). To retrieve the unique id of the user calendar and to store it in a variable called varUserCalendarId, we use the formula as below. You could set it to the OnSatrt property of the App.

    Set(varUserCalendarId, 
     LookUp(Office365Outlook.CalendarGetTablesV2().value, 
     name="Calendar").id
    )

    2). To display a list of calendar entries for a given Outlook calendar, we call the GetEventsCalendarViewV3 method, you need to add a ComboBox and set the Items property with the following formula:

    Office365Outlook.GetEventsCalendarViewV3(
     varUserCalendarId,
     Text(Date(2023,4,01),DateTimeFormat.UTC),
     Text(Date(2023,4,30),DateTimeFormat.UTC)
    ).value

    3). To update a calendar entry, we call the V3CalendarPatchItem method. This method requires the calendar ID, and a specific calendar entry ID from the ComboBox selected.

    Office365Outlook.V3CalendarPatchItem(
     varUserCalendarId,
     ComboBox1.Selected.id,
     "New Subject Text",
     idCalendarEntry.start, 
     idCalendarEntry.end, 
     {Body:"Updated calendar entry body text"}
     ) 

     

  • Himanshu_90677 Profile Picture
    416 on at

    Thanks you @v-qiaqi-msft 

    I just patch calendar id, existing event id,start,end,{}

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard