cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
StephCORKING
Helper III
Helper III

Planner tasks not refreshing in PowerApps

Hi

 

I'm creating an onboarding tool where the activities are managed in Planner.   I can list the activities for the user without a problem but it seems that adding a new activity or updating an existing directly in Planner is not reflected in the powerapps gallery.

 

I tried doing a refresh on the Planner.GetMyPlans and Planner .GetMyTasks in both the APP on start and in the OnVisible of the screen but it doesn't seem to make any difference.

 

For the refresh, I've tried:

Refresh(Planner.ListMyPlansV2());
Refresh(Planner.ListMyTasksV2())

 

and

 

Refresh(Planner.ListMyPlansV2().value);
Refresh(Planner.ListMyTasksV2().value)


I'm not sure what I'm doing wrong, any ideas?

Steph

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @StephCORKING ,

 

You could try to add a button control to refresh the values of gallery control:

1\ Add a button control and set its Onselect property to:

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

 

2\ Add a gallery control and set its Items property to:

A

 

Whenever you add or modify a plan, click the button, the gallery will refresh.

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @StephCORKING ,

 

You could try to add a button control to refresh the values of gallery control:

1\ Add a button control and set its Onselect property to:

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

 

2\ Add a gallery control and set its Items property to:

A

 

Whenever you add or modify a plan, click the button, the gallery will refresh.

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

Hi @v-xiaochen-msft 

 

Thanks,  what I did in the end (and it's working OK), is to update the plan with the status and redo the ClearCollect to get the refreshed data.

 

Steph

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (17,685)