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 Automate / Cannot Add Email Attac...
Power Automate
Answered

Cannot Add Email Attachment to Sharepoint List (Content is received but not passed)

(0) ShareShare
ReportReport
Posted on by 35

Hello together,

 

I am trying to save the attachments of a mail to a sharepoint list. First I am creating a new sharepoint list record for the email. Afterwards I loop through all attachments and want to add them to the new created List Item. However. Flow recognices the Attachments when it opens the mail but when I add them to the sharepoint list the content is empty.

 

The raw input for the create action looks like this:

totti50189_0-1633981642045.png

 

The raw output from the mails content looks like this

totti50189_1-1633981751807.png

and that is the actual flow:

totti50189_3-1633981904563.png

 

totti50189_2-1633981886963.png

 

 

Anybody any idea why it looses his content?

 

Categories:
  • Ellis Karim Profile Picture
    12,377 Super User 2026 Season 2 on at

    What is the expression used for the File Content?

    2021-10-11_22-46-02.png

    For File content try using:
    items('LoopThrougAllAttachmentsOfMail]?['contentBytes']


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • totti50189 Profile Picture
    35 on at

    Hello @ekarim2020 thank you for your reply. This is the actual code I am using:

    totti50189_0-1634019980392.png

    I just try to get the attachments as soon as I start to loop through the mails but even there they are already gone

    totti50189_1-1634020473394.png

    This is the added test variable:

    totti50189_2-1634020506970.png

    Thank you for your help

     

     

     

     

  • Verified answer
    Ellis Karim Profile Picture
    12,377 Super User 2026 Season 2 on at

    For your flow, can you use an email trigger, then save the attachments to a SharePoint document library? The following is from a working flow:

    2021-10-12_08-09-05.png

    The flow doesn't require the use of any expressions as everything we need can be provided by the Dynamic content:

    2021-10-12_08-12-49.png

    Here are some of the details of the trigger which you can customize, including which mailbox folder the flow  checks in order to trigger the flow:

    2021-10-12_08-19-44.png

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • totti50189 Profile Picture
    35 on at

    I oversaw the checkbox to include attachments :'(

     

    Thank you for your screenshot, it solved the problem.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard