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 / HTTP request to Servic...
Power Automate
Unanswered

HTTP request to ServiceDesk Plus Cloud API for file upload corrupting file

(0) ShareShare
ReportReport
Posted on by 10
I have a flow that is triggered by an email in Outlook 365 with a specific subject.  It then uses an http step to send calls to the ServiceDesk Plus cloud API.  The flow retrieves the attachments from the email, and sends them to the API.  The flow works for a simple text file attachment.  However, for any other type of file such as a png image file, the flow runs successfully, and the API call is successful, but the file that is uploaded is unreadable or corrupted.

The file needs to be sent to the API as raw binary.  I am using a Get Attachment action to get the attachment from the email, and then a Compose step to convert the file content to binary: base64ToBinary(outputs('Get_Attachment_(V2)')?['body/contentBytes'])
 
Any ideas on how I could send the file content as raw binary to the api ?
 
 
Categories:

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
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard