Hi
I am currently trying to construct a button-flow that, based on an excel-table, creates tasks in Microsoft planner. The user that triggers the button then should have the opportunity to provide input, based on which the flow dynamically assigns the tasks to a specific group/plan/bucket within the planner.
From what I understand, group/plan/bucket have both an id and a name-attribute and only the group can be identified via its name. This means that in order for the flow to make use of the user input (which are the names and not the ids), I have to use the 'list plans for group' (respectively 'list buckets') action to receive the plan/bucket-items and as such get access to both their names and ids, compare the names to the user-input, thus resulting in the ids.
The problem I ran into is that I apparently do not have permission to perform those two GET-calls. This is confusing to me, as the planner API (https://docs.microsoft.com/en-us/graph/api/resources/planner-overview?view=graph-rest-1.0) lists the permissions in a way that suggests to me that if I can create tasks (which I can, I tried this separately without any dynamic input) then I must have a 'Group.ReadWrite.All'-permission and therefore should also have permission to 'list plans for group' respectively 'list buckets'.
Then again, I might be misinterpreting the way the permissions work, so I would be thankful for any information on what might be the cause for my issue.
Best & thanks in advance,
JP
Solved! Go to Solution.
Hello,
I would suggest going through the article below. This explains how to call graph API from Power Automate using Active Directory OAuth.
https://www.c-sharpcorner.com/article/calling-graph-api-from-power-automate-flow/
Another test, you can do is calling the same API using Postman and verify if it works outside of flow. This will help you determinie the correct URI and authentication type to choose.
Once you grant necessary permissions to Graph API on the Azure Active Directory app, then it should work and authenticate well.
Hope this helps !
Hello,
I would suggest going through the article below. This explains how to call graph API from Power Automate using Active Directory OAuth.
https://www.c-sharpcorner.com/article/calling-graph-api-from-power-automate-flow/
Another test, you can do is calling the same API using Postman and verify if it works outside of flow. This will help you determinie the correct URI and authentication type to choose.
Once you grant necessary permissions to Graph API on the Azure Active Directory app, then it should work and authenticate well.
Hope this helps !
Hi rohsh354
Thanks for your input! This looks like it might indeed be the solution to my problem. My project is currently on a bit of an unclear path, so it is unsure whether I actually will end up having to use the planner or not. If I do, then this is looks like the way to go for sure.
Thanks again, cheers,
JP
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
75 | |
27 | |
17 | |
16 | |
15 |
User | Count |
---|---|
138 | |
45 | |
36 | |
33 | |
29 |