Planner with Flow - issues with Group Id and Plan Id

Iron Contributor

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

2019-08-06 14_47_14-Create your flow _ Microsoft Flow.png

 

 

Do I miss something here?

How do I teach Planner or Flows to find the Group Id's and the Plan Id's?

 

Dan

 

 

12 Replies

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

 

clipboard_image_1.png

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

 

Agree - I've run into this exact issue. Frustrating. Works from a template, but you can't create flows easily from scratch. I'm going to try the workaround (getting the ids from the url) tomorrow.

@Santhosh Balakrishnan 

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.

@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

@Brian-Smith 

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.

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?

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

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

{
"@odata.etag": "xxxxxx"",
"createdDateTime": "2019-06-04T16:19:22.4969055Z",
"owner": "14a58c41-3979-4057-babd-cc3f69b01d8b",
"title": "Ready2019",
 
And 14a58c41-3979-4057-babd-cc3f69b01d8b is the GroupId
 
I hope that helps.  Requesting in the UserVoice for Power Automate may get the options fixed in Flow - but hopefully this workaround may help for now.

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

@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

@Brian-Smith Cool~ Thanks your guidance! I will take a look later.