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

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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard