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 / 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,099 Super User 2025 Season 2 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,099 Super User 2025 Season 2 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,099 Super User 2025 Season 2 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,099 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard