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 corrupted w...
Power Automate
Unanswered

Attachment corrupted when using Invoke HTTP action with ServiceNow REST api

(0) ShareShare
ReportReport
Posted on by 129

I am passing attachment information from PowerApp to Power Automate. In Power Automate I am calling Invoke HTTP action method to call ServiceNow REST api to add attachment. This method is attaching attachment but when i download from ServiceNow it is in corrupted mode. I tried same content bytes to create file in one drive and it worked perfectly. What could be the possible reason for document corruption. After investigation i found that, final document and original document sizes are different. If original document size is 200KB, final document size is coming as 300KB.

 

When I use HTTP action then it is working fine, but when I use Invoke HTTP request then not working as expected. See below screenshots for reference.

With Http triggerWith Http triggerWith Invoke an Http actionWith Invoke an Http action

Categories:
I have the same question (0)
  • Barret Profile Picture
    652 Most Valuable Professional on at

    Off hand, and not being familiar with the ServiceNow REST API, the only thing I can think of is are you sure you are properly encoding the file when you are calling the HTTP rest API? Many APIs only support file attachments being encoded in a certain format (i.e. binary, base64, etc).

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard