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 / Attachment content cha...
Power Automate
Unanswered

Attachment content changing automatically to "Body"

(0) ShareShare
ReportReport
Posted on by Super User 2024 Season 1

Hi All,

 

I have a flow that was working flawlessly and suddenly that stops from night to day.

 

Seems like the on the Outlook Send email connector, the Attachment Content field is changing from File Content to Body when the flow is running.

 

Any idea why that is happening?

 

See screenshots below:

 

2024-03-22 10.57.27 make.powerautomate.com 580b0171f33e.png

2024-03-22 10.57.43 make.powerautomate.com 83587a3fadb5.png

 

Categories:
  • Dave29 Profile Picture
    11 on at

    I have the same issue, thanks for posting.

    But, the file content in my personal environment works, in my work environment it doesn't.

    It's the same flow, except the environment.

    I'll keep testing.

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @Dave29 ,

     

    On my case, my file is in a Sharepoint folder.

     

    It was working till 2 days ago.

    Something has changed for sure.

     

    Cheers,

     

    Fernando

  • Dave29 Profile Picture
    11 on at

    I have used a different account in my work environment and the attachment is still blank.

    It seems to me a setting in my environment somewhere blocking the content. A pop-up style block maybe? A security issue?

    It can't be the flow because it works outside of my environment. The difference is OneDrive. One is Business the other isn't 😕

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi all,

     

    There is definitely an error somewhere that is changing the value of the Attachment Content on the Outlook connector to "Body" instead of "File Content".

     

    Anyone from Microsoft to look on this issue please.

     

    Kind regards,


    Fernando

  • Dave29 Profile Picture
    11 on at

    I still don't know why it worked in one environment and not the other when the Flow was the same but...I have it working now.

     

    When attaching the document, you have to enter the code using the 'Switch to input the entire array' and then include "ContentType": which you can get from the metadata.

     

    It will look something like this, for 1 file:-

     


    [
    {
    "Name": @{outputs('Get_file_metadata')?['body/Name']},
    "ContentBytes": @{outputs('Get_file_content')?['body']},
    "ContentType": @{outputs('Get_file_metadata')?['body/MediaType']}
    }
    ]

     

    Hope this helps.

    Dave

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Any solution till now is not working inside an environment, so if anyone have any clue what is going on, that would be great.

     

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @fernandosilva 

     

    I did not get what error it is causing , could you share the details of error ?

     

    Also File Content is itself body of get file content's outputs

     

    see below 

    Nived_Nambiar_0-1711559552667.png

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi All,

     

    Seems like something changed lately as when I was using the attachment content as File Content, I was receiving the email with the attachment and was working fine. Suddenly, started to changed automatically to Body and I couldn't open the attachment.

    Yesterday, 27/03/2024, I deleted the Body and placed it again and it worked.

    I have no idea what was causing the issue and how it's working now.

    Let's see for how long it will work till break down again...

     

    Thank you all for the replies and help.

    I really appreciate it.

     

    Kind regards,


    Fernando

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard