Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

 

  • Akarim Profile Picture
    7 on at
    Re: Attach single file into 'Send an email (V2)

    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

     

  • Verified answer
    AbdulWahab Profile Picture
    517 on at
    Re: Attach single file into 'Send an email (V2)

    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

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow