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!
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.
I've been trying to figure that out for a week. Thank you so much!
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.
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional