web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom Connector - Get...
Power Automate
Unanswered

Custom Connector - Get Access Token for Microsoft Graph

(2) ShareShare
ReportReport
Posted on by 5

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!

Categories:
I have the same question (0)
  • cscsmit Profile Picture
    3 on at

    When you import from sample put all your necessary parameters in the query string of the url and the content type so you obtain a definition like this then set your fixed value where you need them updating the parameters

    cscsmit_0-1680561481244.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard