Forum Discussion

Bill Hand's avatar
Bill Hand
Brass Contributor
Feb 14, 2018
Solved

Planner API

Is it possible to list all plans in the planner hub using the API?  It looks like it wants a group id.

 

https://graph.microsoft.com/v1.0/groups/{group-id-with-plan}/planner/plans

 

Thanks.

5 Replies

  • My requirement is the pull the report of Assignee .. Task Name and ID when I give the Planner Name. 

     

    In-order to achieve, i found that we need to iterate the Group ID.. then Plan ID... and then get all task details.

     

    I was trying to iterate the Group ID from https://graph.microsoft.com/v1.0/groups?$filter = displayName eq 'Planner Name' where I got the details. From this query, i gave my input for https://graph.microsoft.com/v1.0/groups/GroupID/planner/plans. where it works in Graph Explorer API but when i tried through PowerShell IDE. It throws 401 unauthorized. I tried to re-authorize again through Connect-PNPOnline it works but didn't help me in PowerShell IDE. 

     

    Could you someone help me out. whether nested looping group ID, Plan ID is possible.

    • Bill Hand's avatar
      Bill Hand
      Brass Contributor

      This article by Brian Smith looks like it has everything I need.

       

      https://blogs.msdn.microsoft.com/brismith/2017/08/02/microsoft-planner-considerations-for-reporting-part-1/

       

      Thanks again for your help.

    • Bill Hand's avatar
      Bill Hand
      Brass Contributor

      Thanks.  I was asked to get all the plans out to do some reporting.  Would I be able to use flow to capture certain aspects of the plan and send it into another source that I could use for this kind of reporting?

Resources