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 Platform Community / Forums / Power Apps / Microsoft To-Do: Refre...
Power Apps
Unanswered

Microsoft To-Do: Refresh of lists in Power Apps

(1) ShareShare
ReportReport
Posted on by 4

Hi

I am building an App that connects to Microsoft To-Do. I can create a new list and update a task (so far). The lists in the App and the updated tasks don't appear in the App unless I close the App and reopen it. 

How do I get the App to refresh with the changes made. The To-Do is updating instantly but the App doesn't show the changes.

 

Thank you

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi 🙂

     

    Use the Refresh() function. Refresh(<Listname>).

     

    I think maybe there has been a change in powerapps lately where before, I never used Refresh, but now I have to put it everywhere. This include if I make a local collection (clearcollect) of a datasource. 

     

    Best regards

    Tommy

     

  • Aleejack Profile Picture
    4 on at

    Hi.

    I included a refresh button - Refresh('MicrosoftTo-Do(Business)'.GetAllTodoLists())

    It gives me an error that only managed connections can be refreshed.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi.
    This is an old post but I use something to refresh my to-do's.
    I put a timer somewhere in the page and set its time to 10s, and Visible property to false.
    In the OnTimerEnd property I set the variables I need from my to-do list. For me I needed the quantity of tasks and the list of to-do's and since I needed them on multiple pages, I used the Set() function :

    Set(
     AlarmesNbre;
     CountRows(
     'MicrosoftTo-Do(usageprofessionnel)'.ListToDosByFolder(
     LookUp(
     'MicrosoftTo-Do(usageprofessionnel)'.GetAllTodoListsV2();
     displayName = "Alarmes";
     id //This is the list id to sort only the task in "Alarmes" list
     )
     )
     )
    );;
    Set(
     AlarmsList;
     'MicrosoftTo-Do(usageprofessionnel)'.ListToDosByFolder(
     LookUp(
     'MicrosoftTo-Do(usageprofessionnel)'.GetAllTodoListsV2();
     displayName = "Alarmes";
     id //This is the list id to sort only the task in "Alarmes" list
     )
     )
    )

    Then I use "AlarmesNbre" in labels to display the quantity of task, and adjust icon's color. I use "AlarmesList" in galleries.
    Since all data are transfered to the variable, you can use a button inside a galley to delete or update a task, and use the "id" to modify the proper task :

    'MicrosoftTo-Do(usageprofessionnel)'.DeleteToDoV2(
     LookUp(
     'MicrosoftTo-Do(usageprofessionnel)'.GetAllTodoListsV2();
     displayName = "Alarmes";
     id //This is the list id, required by the Delete function
     );
     ThisItem.id //This is the task id, same as passed within the Set() function
    );;
    UpdateContext({AlarmesVar: false})

    Not sure if this is a proper usage but it seems to works.
    Thank you.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Just realised that Set() function in a timer is not effective since it stops when you navigate on other pages. If you use a multiple pages app, the timer must be copy-pasted.

  • JChouinard2016 Profile Picture
    56 on at

    This is definitely an old post, but I was looking this up. You can use:

    ClearCollect(CollectionName, 'MicrosoftTo-Do(Business)'.GetAllTodoListsV2());

     

    If you want to avoid collections, you can use:

    Set(VariableName, 'MicrosoftTo-Do(Business)'.GetAllTodoListsV2());

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard