Skip to main content

Notifications

Community site session details

Community site session details

Session Id : URmvYVDeifAz7Qu1p5Toej
Power Automate - Building Flows
Unanswered

Saving existing mails of a shared mailbox to a sharepoint site

Like (1) ShareShare
ReportReport
Posted on 14 Mar 2025 16:14:35 by 15
Hi All,
Many thanks in advance, we have a requirement to move existing mails from a shared mailbox to a sharepoint site, with my limited knowledge, i have created a flow as seen below:
 
Get Emails(v3): Original mailbox(shared mailbox id), Top 25 email items with recurrence set to run once in a day
Create File OneDrive connector, when i use this connector i see files being created in the folder of Onedrive, but, i just see a file created with the name of the file being subject of mail. The file is actually empty.
When I use Sharepoint connector Create File, i do not see the file getting created 
 
What are the steps that i can be missing here? I even tried to use the Export Emails connector, but it simply never succeeds when the flow is triggered.
 
  • nirishetty Profile Picture
    15 on 14 Mar 2025 at 17:39:05
    Saving existing mails of a shared mailbox to a sharepoint site
    Hi @Michael E. Gernaey,
    The ask here is to save the entire email including the attachment in one place and not seperately. For now this is a onetime ask for one shared mailbox , but we are looking forward to automating such asks in future.
     
    My apologies for not including the actual flow here as i have done alot of changes while troubleshooting.
     
    @Pstork1 I did check for that field and in the shared mailbox we have alot of unread emails, so even if this is set to Yes ultimately the mail should show up, but as i mentioned it just creates dummy file with just the subject of the mail.
  • Michael E. Gernaey Profile Picture
    36,015 Super User 2025 Season 1 on 14 Mar 2025 at 17:20:51
    Saving existing mails of a shared mailbox to a sharepoint site
     
    So let's back up a secon.
     
    Let's start with a very clear set of business process steps.
     
    You want to iterate through emails that already exist in a mailbox (it happens to be shared)
    You want to save Emails into a SharePoint folder
    --Do you mean the Attachments?
    --Do you mean the entire Email?
    --Do you want attachments to be saved "separate" from the email content
    ----Example: Folder A as the Email
    --------------Folder A-Attachments has the email attachments
     
    Is this really a 1 time thing or do you want it automated going forward?
     
    Lastly,

    Please, whenever you come to the forums it is crucial that since its a visual tool, with inputs and outputs, that you share all of your Flow(s), Apps etc, so we can see what it is doing, versus trying to decipher and guess based on the discussion. It just takes way too long that way.
  • Pstork1 Profile Picture
    65,431 Most Valuable Professional on 14 Mar 2025 at 16:59:13
    Saving existing mails of a shared mailbox to a sharepoint site
    In your Get Emails did you toggle the field for 'Fetch Only Unread Messages'?It defaults to yes. In that case it often won't return anything because someone has already read the messages.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,431 Most Valuable Professional

Leaderboard
Loading complete