Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Email Attachments Do Not open

(0) ShareShare
ReportReport
Posted on by 21

Hello,

 

i have a flow that scans through a SharePoint list and sends an email if the Date is today in the given time provided in a Date/Time column.

Users could attach items to the different list items.

I have managed to send out emails with the flow in the given times but I have two issues:

1. Email attachments are not opening in the sent emails

2. If there are more than one emails to be sent then the attachments from the first item is added to the second email.

 

I have tried the base64(dynamicfilecontent) in the append to array variable after the ContentBytes, but the result was the same.

 

Many thanks for your support in advance!

 

 

1.PNG2.PNG3.PNG4.PNG

 

 

  • CU26081656-0 Profile Picture
    21 on at
    Re: Email Attachments Do Not open

    Hi,

     

    yes this was the issue, many thanks for your support!

  • Verified answer
    Pstork1 Profile Picture
    65,890 Most Valuable Professional on at
    Re: Email Attachments Do Not open

    What you see as Attachment Content is the Body of the Get attachment.  But the content you are getting doesn't include a content type.  That's why it won't open.  How are the attachments added to the SharePoint list?  That may be where the problem resides. But the reason they won't open is because you have the content, but the system doesn't know what the content is since there is no content type.

  • CU26081656-0 Profile Picture
    21 on at
    Re: Email Attachments Do Not open

    I can not select the Body of the Get Attachment Content on the Attachment content

     

    reply.PNG

  • Pstork1 Profile Picture
    65,890 Most Valuable Professional on at
    Re: Email Attachments Do Not open

    The ContentBytes is more than the Content of the Attachment.  There is also a content type setting.  You should be using the Body of the Get Attachment Content rather than the Attachment content.

    image.png

    When you are done ContentBytes should look more like this.

    "ContentBytes": {
    "$content-type": "application/pdf",
    "$content": "JVBERi0xLjYNJeLjz9MNCjE0MiAwIG9iag08PC9G....

     

  • CU26081656-0 Profile Picture
    21 on at
    Re: Email Attachments Do Not open

    Many thanks for your note!

    #1 Please find the result of the Append to array variable. Based on that it seems that the file name is correct but the content is not copied.

     

    attachment.PNG

    email.PNG

    #2 is solved now with the provided solution, Thank you!

  • Pstork1 Profile Picture
    65,890 Most Valuable Professional on at
    Re: Email Attachments Do Not open

    1) Make sure the display name you are using when building the attachments array contains a file extension.  Depending on the attribute you are using it can be the file name without the extension.  That can cause a problem when trying to open the file.

    2) At the top of your Yes side of the condition make sure you set the attachments array equal to an empty array.  Otherwise it doesn't get overridden if there are attachments in a previous item.  

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow