Dear all,
I am building a Microsoft Flow workflow that automatically:
- creates a bucket in Microsoft Planner
- adds several tasks to the buckets
- updates the tasks with a checklist and other details
I am trying to accomplish this using HTTP calls. I use this Microsoft Doc as a reference: https://docs.microsoft.com/en-us/graph/api/plannertaskdetails-update?view=graph-rest-1.0&tabs=javascript
I must say, I am successfully able to do this manually using Postman.
But I can't seem to figure out how to: Obtain an authorization code from within Microsoft Flow
I can do this manually using my internet browser, no problem. I simply browse to the following URL:
https://login.microsoftonline.com/{tenantname}.onmicrosoft.com/oauth2/v2.0/authorize?client_id={AzureAppRegistrationID}
&response_type=code&redirect_uri={MyRedirectURI}&response_mode=query&scope=offline_access%20user.read%20mail.read&state=12345
I get the code, which I will use to obtain an Access Token.
The point is: how do I obtain this authorization code from within my Microsoft Flow?
Another question I am having in respect to this Microsoft Flow step: what Redirect URI should I configure in this scenario, so that Microsoft Flow picks up the response (authorization code automatically)?
Thanks a lot for all help provided!
Kind regards,
Joost