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 / Arquivos Ilegiveis ou ...
Power Automate
Suggested Answer

Arquivos Ilegiveis ou Corrompidos ao Enviar Email (v2) power automate

(0) ShareShare
ReportReport
Posted on by

Boa tarde, tudo bem?

Estou criando um aplicativo que conecta primariamente SharePoint + PowerApps + Power automate

Fiz um fluxo para enviar um email assim que a lista é alterada ou criada mas por algum motivo sempre que ele envia o email os anexos que foram adicionados na lista veem corrompido e ilegíveis no email.

Já tentei fazer de N formas.

Convertendo Base64
Compose
Obtendo anexos antes
Usei 3 IA's diferentes para me ajuda mas de nenhuma forma estou conseguindo!

Categories:
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,290 on at
     
     

    The corrupted attachment issue with SharePoint list attachments in Power Automate has one specific root cause — passing the wrong output from "Get attachment content" into the Send an Email (V2) action. Here is the correct approach:

     

    CORRECT FLOW STRUCTURE:

     

    1. Trigger: When an item is created or modified (SharePoint)

     

    2. Get attachments

       Action: Get attachments (SharePoint connector)

       Pass the list name and item ID from the trigger.

       This returns attachment metadata including the file name.

     

    3. Apply to each (loop through attachments)

     

    4. Get attachment content

       Action: Get attachment content (SharePoint connector)

       Pass the list name, item ID, and file identifier from the

       Get attachments output.

     

    5. Send an email (V2)

       In the Attachments section, set:

     

       Name    -> DisplayName from Get attachments output

                 (e.g., items('Apply_to_each')?['DisplayName'])

     

       Content -> body('Get_attachment_content')?['body']

                 USE THIS EXACT EXPRESSION — the body property only,

                 not the full action output.

     

       Content Type -> Leave BLANK

                 Do not set this unless you specifically need to override it.

                 The Outlook connector handles encoding automatically.

     

     

    WHAT NOT TO DO:

     

       Do NOT wrap the content in base64()

       Do NOT use base64ToString()

       Do NOT pass the full Get attachment content output directly

     

    These all cause the attachment to arrive corrupted or unreadable.

    The Outlook connector encodes the attachment correctly when you

    pass body('Get_attachment_content')?['body'] directly.

     

     
    Vishnu WR
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard