Skip to main content

Notifications

Community site session details

Community site session details

Session Id : aC6+mg7LkwQo4jedgbndEB
Power Automate - Building Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 9 Jan 2025 20:32:41 by 8
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 ?
 
 

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 212 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 208 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 186

Overall leaderboard
Loading started