cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Super User
Super User

Timer to auto update/refresh our Office365Outllok Calender events is not working

We have added the built-in Calendar screen inside our Canvas app:-

 

screencal.png

 

the issue is that the Calendar will not get updated events unless you refresh the page.. so i create a timer which triggers each 5 minutes with , with auto start =true+ auto pause = false and the following formal inside the OnTimerEnd:-

 

refresh.png

 

but the timer is not refreshing the events.. any advice?

 

 

Also i tried this approach but it did not work:-

 

I have the following formula inside the Gallery Items property:-

 

items.png

 

and inside the timer, i am Refreshing the collection:-

 

refersh123.png

but this also will not auto-refresh the events when the timer ends.. not sure why this is not working for me?

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @johnjohn123,
Could you please tell me that how you configure the Timer control, do you set its Repeat property?


Generally, if you want a Timer to trigger the auto-refresh, you should set the following properties:

1). Set the OnTimerEnd property, type:

<Your ClearCollect()>​

Swap YourDataSource with your collection name in the Gallery Items.
2). In the Timer properties panel, toggle the Repeat and AutoStart properties on.
3). Toggle the AutoPause property off.
4). Set the Duration to 300000. (The duration field is in milliseconds. 300000ms = 5 minutes.)

Best Regards,
Qi

View solution in original post

1 REPLY 1
v-qiaqi-msft
Community Support
Community Support

Hi @johnjohn123,
Could you please tell me that how you configure the Timer control, do you set its Repeat property?


Generally, if you want a Timer to trigger the auto-refresh, you should set the following properties:

1). Set the OnTimerEnd property, type:

<Your ClearCollect()>​

Swap YourDataSource with your collection name in the Gallery Items.
2). In the Timer properties panel, toggle the Repeat and AutoStart properties on.
3). Toggle the AutoPause property off.
4). Set the Duration to 300000. (The duration field is in milliseconds. 300000ms = 5 minutes.)

Best Regards,
Qi

Helpful resources

Top Solution Authors
Top Kudoed Authors
Users online (4,109)