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 / Building a PowerApp to...
Power Apps
Suggested Answer

Building a PowerApp to read a Outlook shared mailbox

(0) ShareShare
ReportReport
Posted on by 602
I'm trying to build a powerapp that reads an Outlook shared mailbox but im unsure on how to do so.
I've found a site which explains it a bit 
 
 
ClearCollect(
    colEmails,
    Office365Outlook.GetEmailsV3(
        {
            folderPath: "Inbox",
            top: 25,
            fetchOnlyUnread: false,
            includeAttachments:true,
            fetchOnlyFlagged:false,
            mailboxAddress:_supportMailboxAddress
        }
    ).value
);
But where do i place this code, is it in the Items property of a gallery ?
I have the same question (0)
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Hey you can place it in a Button OnSelect property or OnStart of the App
    Depends on how your app looks like.
     
    In the Items Property you can put this: 
    colEmails
    This Will only show something after you've clicked the button

    If this solvede your porblem please accept it as solution so others can find it as well. 
    If it helped in any other way consider liking it so we can keep supporting eachother. 
  • RvdHeijden Profile Picture
    602 on at
    @DBO, ive done the things u've said but it's not working so i'm missing something.
    I've copied the formula in de OnStart attribute of the App and for the Gallery i've used colEmails but it's not getting any data.
     
    I am also getting an error on the formula which is logical because the formula ends with an ; and that is not possible
     
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Hey RvdHeijden,
     
    The formula can end with a ";" thats not the issue. 
     
    Did you define your variable (_supportMailboxAddress) before you use the clearcollect?
    If not it can't work. 
     
    Could you hover over the red underlined part and tell me what the errorcode is? 
     
    If this solvede your porblem please accept it as solution so others can find it as well. 
    If it helped in any other way consider liking it so we can keep supporting eachother. 
  • RvdHeijden Profile Picture
    602 on at
    Hey @DBO DV, 
     
    This is the text i get when hovering over the redline
    I haven't defined the variable _supportMailboxAddress because i'm not sure where i can do that (sorry)
     
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Oh okay I get it. 
     
    It's a language issue. You see power platform formulas have slight differences regarding the language that you are using. 
    you should change it to this: 
    Set(_supportMailboxAddress;"HERE COMES THE ADRRESS OF YOUR SHARED MAILBOX");;
    ClearCollect(
        colEmails;
        Office365Outlook.GetEmailsV3(
            {
                folderPath: "Inbox";
                top: 25;
                fetchOnlyUnread: false;
                includeAttachments:true;
                fetchOnlyFlagged:false;
                mailboxAddress:_supportMailboxAddress
            }
        ).value
    );;
    If this solvede your porblem please accept it as solution so others can find it as well. 
    If it helped in any other way consider liking it so we can keep supporting eachother. 
  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
     
    Just wanted to check in. 
    Is your problem solved? 
  • RvdHeijden Profile Picture
    602 on at
    The problem isn't solved yet, i didn't receive any solution unfortunately

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard