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 / How to upload attachme...
Power Automate
Suggested Answer

How to upload attachments using HTTP on Power Automate?

(1) ShareShare
ReportReport
Posted on by 8

My flow is triggered by receiving an email that contains an attachment. I will then need to reference the contents of that attachment when creating a document record in my http step.

The body of my http request:

Screenshot 2024-09-19 165010

After running the flow, the dynamic content is showing bolded ?'s in the output. I would think this is the reason why my flow is failing.

Screenshot 2024-09-19 165241Screenshot 2024-09-19 165409

On the first attempt (with the same JSON body), the file contents showed none of these characters and everything ran smoothly. After that, these characters have showed up in every attempt and I have not had the flow succeed since. Does anyone know how to fix this?

Screenshot 2024-09-19 165010.png
Screenshot 2024-09-19 165409.png
Screenshot 2024-09-19 165241.png
Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at
    Hey Mate, You are trying to upload the attachment to which Data-Source? 
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
     
    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.
     
  • jayman123 Profile Picture
    8 on at
    I am trying to upload the attachment to Oracle HCM.
  • Suggested answer
    nixierat Profile Picture
    4 on at
    Good Afternoon,
     
    When looking at the error it could just be an error with the other fields that you are sending.
    Please verify all of the criteria for the API post are met.
     
    Thanks,
     nixierat
  • jayman123 Profile Picture
    8 on at
    Nixierat, 
     
    I looked back at the fields and found that the DocumentCode needs to be unique with every document record, which is something I was not doing. Once I referenced a time variable (something that is always unique) it worked again! Thanks!

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard