Skip to main content

Notifications

Community site session details

Community site session details

Session Id : DkoDX3tjkwE1etYyTUnGbe
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,089 Most Valuable Professional

Leaderboard
Loading started