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 / Useing Graph API to ge...
Power Apps
Unanswered

Useing Graph API to get Outlook folders

(0) ShareShare
ReportReport
Posted on by 1,259 Moderator

I'm trying to use Graph API to get a list of my Outlook folders, but this command returns a boolean instead of the uptyped variable.   FYI, it doesn't not generate an error, but after it runs the varFolders contains a boolean.

 

Set(varFolders,Office365Outlook.HttpRequest("https://graph.microsoft.com/v1.0/me/mailFolders","GET",""))

 

This command does work,

Set(varMyProfile,Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/me/","GET",""))

so I know that calls to the Graph API work, but not for this one, even though it is indicated it should in the Microsoft Documentation.

 

Any ideas?

 

Thanks,
Steve

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @subsguts ,

     

    Please make sure the setting is turned on.

    vxiaochenmsft_0-1692322623638.png

    After turning on this setting, please save the app and refresh the browser.

     

    Best Regards,

    Wearsky

  • subsguts Profile Picture
    1,259 Moderator on at

    Yes, that is set and the second Graph call posted is working.  I am trying to figure out why the first one, reposted here is not:

     

    Set(varFolders,Office365Outlook.HttpRequest("https://graph.microsoft.com/v1.0/me/mailFolders","GET",""))

     

    Thanks

  • htlcalbbs1 Profile Picture
    4 on at

    The boolean error is pre untyped object. All of the above should resolve your problem.

    Debug: Look in monitor and/or drop a label on your screen and set the Text to 

    First(varFolders.value).displayName
    If your label has a folder name, your code and settings are correct

     

  • subsguts Profile Picture
    1,259 Moderator on at

    This doesn't work because the function that I call is returning a boolean instead of the untyped  object.   

    Below shows the value of varFolders after the function call.

     

    subsguts_0-1692621897998.png

     

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi,

     

    Just so you're aware and so you can prepare your solution so that it doesn't affect your app when they turn it off:

    The Office365Groups API call exploit was noted and fixed by Microsoft - this is why they deprecated the V1 action.

    The V2 action only allows calls to the /groups segment, and the V1 connector will be fully deprecated (and no longer be available) in the near future


    You can see more here in the Connector reference for Office365Groups

    iAm_ManCat_0-1698394609273.png

     

     

    To call other graph API functions you must now use the 'Invoke an http request' with Azure AD action.

     

    Cheers,

    Sancho

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard