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 Apps / Model-driven app, PCF ...
Power Apps
Answered

Model-driven app, PCF call to Graph API

(0) ShareShare
ReportReport
Posted on by 5

Hi Team,

 

I like to understand  how to receive MSAL token with in PCF control , to call API (Graph).  PCF finally will deployed with in Modern driven app.

 

-Thanks

 

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    You can check this post - https://taerimhan.com/consuming-microsoft-graph-api-from-pcf-control/

  • ponrajn Profile Picture
    5 on at

    Thank you for sharing , But it required separate sign-in by user again , Can we avoid this ?

  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    I have never built anything similar so this example is the only thing I can recommend.

  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    If the user already has a current, active, valid token, then you can retrieve is in MSAL using AcquireTokenSilent in msal.net or acquireTokenSilent if you're doing it in a Single Page App with the Node libraries.

     

    However, the fact that the user is logged into your app does NOT necessarily mean that their current token is also valid for some other app, even if that app is a Microsoft one. So, first try to get the Token silently, but then fail over to prompting the user to log in if necessary.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard