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 / Button to refresh data...
Power Apps
Answered

Button to refresh data from a planner in powerapps

(0) ShareShare
ReportReport
Posted on by 9

Hello, 

 

I'm trying to create an internal refresh in my app to update the gallery items that are connected to a task list from MS planner after creating a new task but it seems to not work properly.

 

Right now the code is:

 

If(Checkbox.Text = "true", Planner.UpdateTask(Gallery.Selected.id,{percentComplete:"Completed"}));

 

NOTE: The function refresh doesn't work for a planner database as it works for other database types.

 

Could someone please help me?

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @GS11,

    Do you want to display the updated task in your Gallery after you update the task?

     

    To update the tasks in the Gallery, I think you could try to generate a collection to list all the tasks using a button:

    Add a button control and set its Onselect property to:

    Set(A,Planner.ListMyPlansV2().value)

    Note this is just an example, you could use the correct action to list the needed tasks, here I just list my plans.

     

    Set Gallery Items property to the variable:

    A

  • GS11 Profile Picture
    9 on at

    Hello @v-qiaqi-msft!

     

    Thanks for your answer. Actually, I have a gallery that shows the tasks from a planner and I have a button to add new tasks in the planner.

     

    What I want to accomplish is to after adding a new task, display a button to refresh the gallery data and what it exhibit without having to F5 or refresh the whole page.

     

    If I wasn't clear enough, please let me know! 

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @GS11,

    I know what you want to achieve, to refresh all the tasks in the Gallery, right?

    However, as you know, refresh Gallery could not refresh all the tasks from planner task connector. So, I create a button to collect all the tasks by clicking it, which will collects all the tasks including the latest updated ones.

     

    Hope you could understand my logic on this case, refreshing planner tasks is impossible, but we could collect tasks after you update a certain task.

     

    All roads lead to Rome, even this is not the direct one.

  • GS11 Profile Picture
    9 on at

    Hi @v-qiaqi-msft!

     

    Now I get it. I tried to do it that way and it works. Thank you so much!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 538

#2
WarrenBelz Profile Picture

WarrenBelz 420 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard