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 / Attachment uploaded on...
Power Automate
Unanswered

Attachment uploaded on Microsoft form cannot be sent in email

(1) ShareShare
ReportReport
Posted on by 32
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? 
Categories:
I have the same question (0)
  • Suggested answer
    Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at
     
    Please check the Append to Array variable action, as shown below:
     
     
     
    Ellis
     
  • IF-06091959-0 Profile Picture
    32 on at
    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,681 Super User 2025 Season 2 on at
    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
  • Suggested answer
    Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at
    I just noticed the following. Please try removing the quote marks from the ContenetBytes and re-test the flow:
     
     
     

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard