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 / How to get mail conten...
Power Apps
Unanswered

How to get mail content from shared mailbox

(0) ShareShare
ReportReport
Posted on by 46

I have a power app. In a gallery I read the inbox and show the subject etc. In a form I want to show the mail details from the selected mail in the gallery. How I understand this should be the right script but it isn't working.

 

Office365Outlook.GetEmailV2(messageId=Gallery1.Selected.internetMessageId)

Categories:
I have the same question (0)
  • victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    it is not necessary to compare the messageId, just place the Id like this:

    Office365Outlook.GetEmailV2(Gallery1.Selected.internetMessageId)

     

    I hope it helps 🙂

  • Christoph-hh Profile Picture
    46 on at

    Unfortunately, it doesn't work with it either.

  • victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    sorry I didn't pay attention it is a shared mailbox.

    try this:

    Office365Outlook.GetEmailV2(
     Gallery1.Selected.internetMessageId,
     {mailboxAddress:"SharedMail@mail.com"} // replace with your shared mailbox
    )

     

    I hope it helps 🙂

  • Christoph-hh Profile Picture
    46 on at

    Hi victorcp, now I get an error message.



  • victorcp Profile Picture
    2,350 Moderator on at

    Can you share the error?

     

  • Christoph-hh Profile Picture
    46 on at

    Server Error in '/' Application.


    Runtime Error

    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

    <!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="Off"/> </system.web></configuration>


    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

    <!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web></configuration>

     

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard