cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Roots
New Member

Custom Connector - Get Access Token for Microsoft Graph

Hi!

I'm trying to create a Custom Connector that gets an Access token from Microsoft Graph. My goal is to create a reusable Connector that could be used in multiple Flows that uses Microsoft Graph API to do various tasks, eg. Create a Planner plan.

 

My issue is that the token endpoint (https://login.microsoftonline.com/{tenantId}/oauth2/token) has Content-Type: x-www-form-urlencoded and the body of the POST request should look something like this:

grant_type=password&resource=https://graph.microsoft.com&client_id={myClientId}&client_secret={myClientSecret}&username={myUsername}&password={myPassword}

 

Obviously this is not valid JSON, which the Action->Request body requires.

How would I go about getting this request to work with urlencoded body and getting the parameters dynamic?

Thanks in advance!

0 REPLIES 0

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Kudoed Authors
Users online (2,364)