Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Attachment uploaded on Microsoft form cannot be sent in email

(1) ShareShare
ReportReport
Posted on by 27
I'm trying to attach a document uploaded on a Form to an email and send it to another email from the form. I can't get it to work, even if I switch from the old and new designer. Flow looks like this:
As you can see, no dynamic content pops up.
If I switch to detail inputs, the attachment name and content does not pop up (the question where you upload the document is circled):
 
I've tried to upload another way, using this tutorial, where I save the file in a folder and then attach it to the email: 
Flow looks like this:
The document attaches, but I get this error when I try to open it:
Has anyone else figured out how to do this? 
  • Suggested answer
    Ellis Karim Profile Picture
    11,067 Super User 2025 Season 1 on at
    Attachment uploaded on Microsoft form cannot be sent in email
    I just noticed the following. Please try removing the quote marks from the ContenetBytes and re-test the flow:
     
     
     
  • Suggested answer
    Ellis Karim Profile Picture
    11,067 Super User 2025 Season 1 on at
    Attachment uploaded on Microsoft form cannot be sent in email
    Sometimes Power Automate can change the expressions to the equivalent dynamic content, which is not a problem. As long as the expressions you have entered are correct as shown below:
     
    Sometimes attachments just won't open.

    If this is the case, you may need to enter the following alternative expressions for the “contentBytes” property:
    {
      "name": items('Apply_to_each')?['name'],
      "contentBytes": {
        "$content-type": body('Get_file_content_using_path')?['$content-type'],
        "$content": body('Get_file_content_using_path')?['$content']
      }
    }
     
    See the following related posts for more information:
     
    If you are still having problems, we'll need to dig deeper and I will need to see more of the flow and view some runtime outputs. For example:
     
     

    Ellis
  • IF-06091959-0 Profile Picture
    27 on at
    Attachment uploaded on Microsoft form cannot be sent in email
    Made that correction and am still receiving the error. Also, every time I run it changes the expression from item()?['name'] to the dynamic content below:
     
  • Suggested answer
    Ellis Karim Profile Picture
    11,067 Super User 2025 Season 1 on at
    Attachment uploaded on Microsoft form cannot be sent in email
     
    Please check the Append to Array variable action, as shown below:
     
     
     
    Ellis
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492