web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Button to refresh data...
Power Apps
Unanswered

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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard