web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Single form attachment...
Power Automate
Unanswered

Single form attachment to email

(0) ShareShare
ReportReport
Posted on by 14

Hi 

I am very very new to Power Automate. I read a lot of the similar but often is for an array of attachments. I simply have one or no attachments. These are saved obviously on OneDrive. I just need to add to an email the link to the attachment. The form is below:

Screenshot 2023-03-26 at 15.51.13.png

The flow is below:

Screenshot 2023-03-26 at 15.56.05.png

Screenshot 2023-03-26 at 15.56.23.png

Screenshot 2023-03-26 at 15.56.32.png

Any help is appreciated!

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Single form attachment to email

    Hi @JohnAd ,

     

    I made a sample for you.

    vxiaochenmsft_0-1679882800664.png

    vxiaochenmsft_1-1679882828098.png

     

    Best Regards,

    Wearsky

  • JohnAd Profile Picture
    14 on at
    Re: Single form attachment to email

    Thank you - I'll try this. Never used JSON and sample file before. Got to read about it. .... I will report back with ... success (?)

  • JohnAd Profile Picture
    14 on at
    Re: Single form attachment to email

    I have now implemented the JSON code in your example. It is working perfectly. for my own benefit, I'd love to understand  the structure of the 

    json(outputs('Get_response_details')?['body/r342f9ec91764407ba7052d919e827511'])?[0]?['link']

    are ? used as section breaks?

    what is the [0]

    i assume the ['link'] returns the associated section after the : in the code

    the form response code was

     "r342f9ec91764407ba7052d919e827511": "[{\"name\":\"Invitation.pdf\",\"link\":\"https://school-my.sharepoint.com/personal/jada_sch_org_uk/Documents/Apps/Microsoft%20Forms/ORG%201/Question/Invitation.pdf\",\"id\":\"012LEEEJAJQ7X6PZWDVFA37MMZ3ZZRWCKA\",\"type\":null,\"size\":500972,\"referenceId\":\"012LEEEJHVDOKQSB5VQNDLNYK5343MJN5P\",\"driveId\":\"b!t1Al12Pyv0Spk4XrLo6Jd9evfn9LhXxDoW_EsEzQ9WUXJXF9frz1TYoloZX339CO\",\"status\":1,\"uploadSessionUrl\":null}]"
    }

     

    thank you for the support

     

     

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard