web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard