Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Power Automate With Email Attachment

(0) ShareShare
ReportReport
Posted on by 104

I am creating a power automate to email an Excel spreadsheet. I am using the below setup.

 

1. Recurrence (daily at 6pm)

2. Get file metadata (Sharepoint)

3. Get file content (Sharepoint)

4. Send an Email (V2)

 

I receive the email but the attachment is corrupt. Any suggestions?

 

martzj_0-1704748813698.pngmartzj_1-1704748826226.pngmartzj_2-1704748846564.pngmartzj_3-1704748853382.png

 

  • v-yueyun-msft Profile Picture
    on at
    Re: Power Automate With Email Attachment

    Hi , @martzj 

    Can you try to remove the base64() function in your side  to test :

    vyueyunmsft_0-1704855312091.png

     

     

    If this reply can help you , you can click mark this reply as solution, thanks in advance!


    Best Regards,

    Yueyun Zhang

  • martzj Profile Picture
    104 on at
    Re: Power Automate With Email Attachment

    I still get an error message when I open the document that it's corrupted.

     

    martzj_0-1704807286939.png

     

  • v-yueyun-msft Profile Picture
    on at
    Re: Power Automate With Email Attachment

    Hi , @martzj 

    According to your description, you attachments is corrupt in your email .

    You need to check :
    (1)First , you need to put the File Name with extension , you need to check it in your run history:

    vyueyunmsft_0-1704763588804.png

    (2)You may just pass the "File Content" return by the "Getting File content using path" action:

    vyueyunmsft_1-1704763647081.png

    body('Get_file_content_using_path')

     

    If this reply can help you , you can click mark this reply as solution, thanks in advance!


    Best Regards,

    Yueyun Zhang

     

     

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1