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 / Sending an email with ...
Power Automate
Unanswered

Sending an email with form attachment

(0) ShareShare
ReportReport
Posted on by 33

So I have been building a few flows recently with good success but I have got stuck getting this last bit to work. To date I have got it working so that when a ms form response is submitted I can send an email with a link to the uploaded attachment using PARSE JSON with this code:

 

{
 "type": "array",
 "items": {
 "type": "object",
 "properties": {
 "name": {
 "type": "string"
 },
 "link": {
 "type": "string"
 },
 "id": {
 "type": "string"
 },
 "type": {},
 "size": {
 "type": "integer"
 },
 "referenceId": {
 "type": "string"
 },
 "driveId": {
 "type": "string"
 },
 "status": {
 "type": "integer"
 },
 "uploadSessionUrl": {}
 },
 "required": [
 "name",
 "link",
 "id",
 "type",
 "size",
 "referenceId",
 "driveId",
 "status",
 "uploadSessionUrl"
 ]
 }
}

And then inserting the link in the body emails and teams message with this expression: 

first(body('Parse_JSON'))?['link']
 
This all works well, but what I need to do now is actually attach the file submitted in the form to the email I am sending out. But I can't use this same expression in the attachment content field as it doesn't work. How do I get the attachment on to the email?
 
TIA
Categories:
I have the same question (0)
  • manuelstgomes Profile Picture
    6,643 on at

    HI @James_Anderson 

     

    When you get the response details you get a string with an array format that contains the details of the files uploaded.

     

    For example:

    [{
    	"name": "FILE_NAME",
    	"link": "https://MYDOMAIN/personal/myaccount/Documents/Apps/Microsoft%20Forms/FORM_NAME/Question/FILE.xls",
    	"id": "ID",
    	"type": null,
    	"size": 123,
    	"referenceId": "REF",
    	"driveId": "DRIVE",
    	"status": 1,
    	"uploadSessionUrl": null
    }]

     

    You can do a parse Json with this format and then have an array that you can Loop and get the ID. Then you can use the Get File and use that ID to be able to attach that in your email.

    2020-08-20 11_12_51-Edit your flow _ Power Automate.png

     

    Can you please check if and let me know if you have any questions?

     

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

    Cheers
    Manuel

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 225

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard