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 / Attach single file int...
Power Automate
Answered

Attach single file into 'Send an email (V2)

(0) ShareShare
ReportReport
Posted on by 7

Hi all,

 

I am relatively new to Power Automate so bear with me.

I have created a form that gets the user response details and then sends an automated email via 'Send an email (V2)' which works perfectly.

I now want to add an action whereby a pdf document is attached to the automated email before its sent.

 

From online documentation i understand that i have to add an action before the 'Send an email (V2)' that to 'Get file content using path'.

This new action would need the 'site Address' & 'File Path' for the Sharepoint location where the document is stored.

I then have to reference this in the 'Send an email (V2)' in the 'Attachment Name-1' and 'Attachment Content -' sections.

 

I believe that I have followed these steps but the flow runs for over 15 mins before failing with an error 502.

 

Has anyone encountered this error message before or better yet know of a simpler way to attach the single document?

 

Thanks in advance.

 

Regards,

AKarim

 

Categories:
I have the same question (0)
  • Verified answer
    AbdulWahab Profile Picture
    517 Microsoft Employee on at

    Hi Akarim,

     

    Before trying to get the file from SharePoint. I think first try to connect SharePoint with a simple connector. As per the details, it is something that leads to a bad gateway.

     

    Let me know if I can provide you with more details.

     

    Thanks
    Regards,

    Abdul Wahab
    Power Platform/Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: https://www.linkedin.com/in/abdul-wahab-a5b8b011a

     

     

  • Akarim Profile Picture
    7 on at

    Hi Abdul Wahab,

     

    Thanks for the quick response.

    I have now figured it out.

    Initially I was trying to select the Folder and Attachment array using 'Initialize variable' action.

    This turned out to be too much.

     

    Finally I saw another guide to use the action named 'Get file content using path' and the entered the Sharepoint site address and file path including the file extension. I then referred to this in the 'Send an email (V2)' action.

     

    This turned out to be very simple and all is working fine now.

     

    Regards,

    AKarim

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 376

#2
Valantis Profile Picture

Valantis 361

#3
David_MA Profile Picture

David_MA 294 Super User 2026 Season 1

Last 30 days Overall leaderboard