Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Refresh a gallery that displays my outlook calendar

(1) ShareShare
ReportReport
Posted on by 206

I have a screen with a Gallery that displays my Outlook 365 Calendar. Items for the Gallery is set as Office365Outlook.CalendarGetItems(ddCalName.Selected.Name).value. This returns my calendar data. The problem is that I can't get to refresh when I add new items to the calendar without closing out and reopening the app. Help!

Categories:
  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Refresh a gallery that displays my outlook calendar

    @Aimthedame 

    Excellent!  If this helped out then please mark the reply as the solution so that others who experience that same issue can find the answer quickly. 

  • Aimthedame Profile Picture
    206 on at
    Re: Refresh a gallery that displays my outlook calendar

    I've been trying to figure that out for a week. Thank you so much!

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Refresh a gallery that displays my outlook calendar

    @Aimthedame 

    Unfortunately, there is no particular way to refresh/reset the information when it is tied to the Gallery items directly.

    However, you can force it to refresh by changing the calendar name.  You can change your Items property to the following formula:

    Office365Outlook.CalendarGetItems(If(lclUpdateCalendar, "", ddCalName.Selected.Name)).value

    Then, at some action - a button OnSelect, a Timer action, anything...you can put the following formula:

    UpdateContext({lclUpdateCalendar:true}); UpdateContext({lclUpdateCalendar:false})

    This will cause the Item formula to reevaluate and it will force a refresh.

     

    I hope this is helpful for you.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard