How to read emails from shared mailbox in Exchange in PowerApps Canvas apps

Hello everyone and welcome to my blog. In today’s blog I will discuss on how to retrieve emails from shared mailbox in Exchange in canvas apps.

Power Platform has inbuilt connector for Office 365 Outlook that can be used to in Canvas apps and Power Automate to perform operations with Outlook.

For this demo, I have a shared mailbox that I need to read from a Power App. To do this, I will use the GetEmailsV3 function of Office365Outlook connector. I am using the ClearCollect function to collect top 25 emails from the “Inbox” folder.

The important thing to note here is the mailboxAddress parameter. That is where you need to provide the support mailbox address.

ClearCollect(
    colEmails,
    Office365Outlook.GetEmailsV3(
        {
            folderPath: "Inbox",
            top: 25,
            fetchOnlyUnread: false,
            includeAttachments:true,
            fetchOnlyFlagged:false,
            mailboxAddress:_supportMailboxAddress
        }
    ).value
);

If you do not specify the mailboxAddress, the connector shall retrieve emails from the logged in users mailbox.

Hope you liked this post. If this post has helped, you can buy me a coffee. Links on right pane.

For similar topics on Microsoft.NET and Power Platform, subscribe to my blog using the Subscribe option on right pane.

You will also like the below posts.

Debajit Dutta
Business Solutions MVP


Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe to get the latest posts sent to your email.

Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading