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 Automate / How to send Email with...
Power Automate
Answered

How to send Email with multiple attachments for approval?

(0) ShareShare
ReportReport
Posted on by 82

Hello All,

I tired to make Power Automate send an email with an attachment from SharePoint when a new item is created on SharePoint. I was googling and find an instruction how to do it. I was following instruction but  I cannot see "Attachment Content" on Dynamic content list. Does someone know why I cannot see on the list? and How to fix it?

Sunghan_0-1641975302439.png

Thanks in advance.

 

 

Categories:
I have the same question (0)
  • hemrhk Profile Picture
    361 on at

    @Sunghan 

     

    Kindly follow this post for email attachments,

    https://365stack.in/index.php/2021/11/19/how-to-add-dynamic-attachments-in-power-automate-send-email-action/ 

     

    ------------------------------------------------------------------------------------------------- 

    If it solved your problem give a kudo and accept it as a solution. 

    Follow and Subscribe 365 Stack for more updates. 

     

  • Sunghan Profile Picture
    82 on at

    Hi @hemrhk ,

    Thank you for your feedback and I visited the link. I tired it before as same as the instruction on your link. But it didn't work.

    For your reference I captured the flow. It works if there is no error if I eliminate Array. Can you coach me how to fix the error?

    Sunghan_0-1641992450728.png

    Sunghan_1-1641992702414.png

    Sunghan_2-1641992772082.png

     

    Thanks in advance.

     

  • hemrhk Profile Picture
    361 on at

    @Sunghan 

     

    Can you expand the "Apply to each" action and send a screenshot?

    I hope you are using the "Get Attachment content" action inside the apply to each action. It will get the attachment data that should be passed into Content Bytes.

     

    ------------------------------------------------------------------------------------------------- 

    If it solved your problem give a kudo and accept it as a solution. 

    Follow and Subscribe 365 Stack for more updates. 

     

  • Sunghan Profile Picture
    82 on at

    Hi @hemrhk ,

    Pls. refer to the "Apply to each" expending below:

    Sunghan_1-1641994551190.png

     

     

  • hemrhk Profile Picture
    361 on at

    @Sunghan 

    Construct the JSON in the below format in the append to array variable action.

    {
    "Name": "@{items('Apply_to_each')?['DisplayName']}",
    "content": {
    "$content-type": "@{body('Get_attachment_content')['$content-type']}",
    "$content": "@{body('Get_attachment_content')['$content']}"
    }
    }

     

    https://365stack.in/index.php/2021/11/19/how-to-add-dynamic-attachments-in-power-automate-send-email-action/ 

    ------------------------------------------------------------------------------------------------- 

    If it solved your problem give a kudo and accept it as a solution. 

    Follow and Subscribe 365 Stack for more updates. 

     

  • Sunghan Profile Picture
    82 on at

    Hi @hemrhk ,

    Thank you for your explanation. I started to learn Power Automate very recently and don't know well how to edit JSON CODE. 😞

    I have been searching how to edit JSON CODE. I don't think I can edit on Power Automate.

    Sorry for that I do not have a capability of understanding well.

    Best Regards,

     

  • hemrhk Profile Picture
    361 on at

    @Sunghan 

     

    In the append to an array variable, include this JSON code.

    In Name put Display name of the attachment,

    In $content-type and $content, Copy and paste the below code

    {
    "Name": "@{items('Apply_to_each')?['DisplayName']}",
    "content": {
    "$content-type": "@{body('Get_attachment_content')['$content-type']}",
    "$content": "@{body('Get_attachment_content')['$content']}"
    }
    }

     

     

  • Sunghan Profile Picture
    82 on at

    Hi @hemrhk ,

    Thank you for your good explanation and Now I know that how to edit JSON Code on Power Automate.

    I followed your instruction. I don't know why but It does not work properly when I run Test.

    FYI: it works when I eliminate Attachments of "varAttachments"

    Sunghan_3-1642119975600.png

     

    Sunghan_0-1642119638709.png

    Test Result:

    Sunghan_1-1642119790876.png

    Error Detail:

    Sunghan_2-1642119862653.png

     

     

     

     

     

  • Ellis Karim Profile Picture
    11,793 Super User 2025 Season 2 on at

    You can also try this format for the attachments array:

    Snag_64d8315.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.

  • Sunghan Profile Picture
    82 on at

    Hi @ekarim2020 ,

    Thank you for replying for my question. Sorry I cannot see the "List Item ID" on Dynamic content. Would you please let me know to to create "List Item ID"?

    Sunghan_0-1642509048254.png

    Sunghan_1-1642509100672.png

    Best Regards,

     

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard