cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MathiasGijsels
Frequent Visitor

App doesn't read user data in Teams

Hi

 

I've created an app in Microsoft Teams that reads the planner of the user.

 

I used Planner.ListMyPlansV2().value to read the users plans, but it doesn't read it correctly.

The command only lists the plans of the creator of the app and not the user. It gives the same results for everyone.

 

Any advice would be appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Therese-Youssef
Microsoft
Microsoft

Hi @MathiasGijsels,

 

ListMyPlansV2() function is used to list plans of the user who wrote the function. So it is expected to give the same results for everyone.

Based on the documentation, there is no function that can be used to list users plans directly.

 

However, you can use ListGroupPlans function, it is used to list plans of a specific group.
You can create groups and add users to these groups, then you can read users plans.

For more information, see:

Planner - PowerApps Connector (carlosag.net)

Planner - Connectors | Microsoft Docs

Planner - PowerApps Connector (carlosag.net)

 

(Please note: the 1st and 3rd link are not the same)

 

If this answers your question, please mark your post as Solved.

 

Hope the above content may help you.

Thanks.

View solution in original post

1 REPLY 1
Therese-Youssef
Microsoft
Microsoft

Hi @MathiasGijsels,

 

ListMyPlansV2() function is used to list plans of the user who wrote the function. So it is expected to give the same results for everyone.

Based on the documentation, there is no function that can be used to list users plans directly.

 

However, you can use ListGroupPlans function, it is used to list plans of a specific group.
You can create groups and add users to these groups, then you can read users plans.

For more information, see:

Planner - PowerApps Connector (carlosag.net)

Planner - Connectors | Microsoft Docs

Planner - PowerApps Connector (carlosag.net)

 

(Please note: the 1st and 3rd link are not the same)

 

If this answers your question, please mark your post as Solved.

 

Hope the above content may help you.

Thanks.

View solution in original post

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

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,072)