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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 321 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 289 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 200 Super User 2026 Season 1

Last 30 days Overall leaderboard