Aug 06 2019 05:49 AM
I try to use Flows to create a list of Planner tasks.
When I use a predefined template (i.e. "Post messages to Microsoft Teams when a new task is created in Planner"), I can select the Plan Id in the Flow GUI.
When I create a new flow and not use any template, selecting Planner and then "List tasks", I am asked again for the "Group Id" and the "Plan Id". However, now the pulldown menu is not populated with my existing Plans.
Instead I get "Could not retrieve values. Insufficient privileges to complete the operation".
Do I miss something here?
How do I teach Planner or Flows to find the Group Id's and the Plan Id's?
Dan
Aug 08 2019 02:04 AM
@DanHuber, AFAIK you need to be an admin to read the O365 Group parameters. But the workaround is to manually enter the group id in the flow. The Plans will get listed once the group id is entered.
Aug 08 2019 02:33 AM
Thanks @Santhosh Balakrishnan ,
I can certainly work with the workaround described already above by @v-litu-msft , but I would expect that flows behaves consistently.
Again, if I use flow templates, dropdowns are filled out with Group Id and Plan Id.
If i create a flow from scratch with the same steps as in the templates, I get the access error message when trying to use the dropdowns. Look at my screenshots and the descriptions above, please.
To complete:
I am creator, owner, member of all plans.
And I am global administrator of the complete tenant.
I doubt that there is a problem with permissions as such, but I have to assume there is a bug.
Dan
Aug 20 2019 07:10 AM
Sep 05 2019 04:27 PM
Is this a new feature? Previous tasks I have created did not require the group id. I went to modify my Flow and add another task and now group id is stopping me. I am a Global Admin.
Sep 05 2019 05:50 PM
@James Nelson this change was introduced after Planner changed to accommodate multiple plans per group. I think we are looking at the permissions issue reading Groups - but the GroupID from Url is a workaround I've used successfully.
Best regards,
Brian
Sep 06 2019 09:45 AM
Thanks Brian. Makes sense. I did grab the id from the URL and it worked fine so I'll adjust to it. Just caught me off guard. I'll look for the road map.
Aug 18 2020 08:06 PM
Is there any update for this issue? I've also met it when I tried to get use the Power Apps Planner connector. Some off the functions need to pass the groupid as the parameter, how should I get all of my planner group id?
Aug 18 2020 08:08 PM
@Brian-Smith Is there any update for this issue? I've also met it when I tried to get use the Power Apps Planner connector. Some off the functions need to pass the groupid as the parameter, how should I get all of my planner group id?
Aug 21 2020 07:23 AM
@Ethan_Zhang the GroupID can be seen as the 'owner' field if you make a graph call to get the Planner plan with the PlanID - so a call to Graph like https://graph.microsoft.com/v1.0/planner/plans/<plan id here> will return:
Aug 21 2020 07:31 AM
@Brian-Smith Thanks for your kindly help! Although, I don't know how to make a graph call, could you share some useful reference link so that I can do some research for it? Very appreciate it!
Aug 21 2020 04:18 PM
@Ethan_Zhang no problem, and plenty of resources at https://developer.microsoft.com/en-us/graph and an easy way to see how the calls work at https://developer.microsoft.com/en-us/graph/graph-explorer. To make the call from Power Automate does need some setup, as it is protected by needing to pass in a ClientID - this article does a walk through explaining this part https://www.c-sharpcorner.com/article/calling-graph-api-from-power-automate-flow/. Hopefully that will help you get what you need from your Flow.
Best regards,
Brian
Aug 21 2020 06:52 PM
@Brian-Smith Cool~ Thanks your guidance! I will take a look later.