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 / Uploading files using ...
Power Automate
Unanswered

Uploading files using http request.

(0) ShareShare
ReportReport
Posted on by 6,048 Super User 2024 Season 1

I am using ZOHO CRM API. Adding records, Editing Records everything works fine except for file upload. There is some mistake in creating request body because files are being added to the crm. But, i can not open them.

Here's the link of the API i am using:

 

https://www.zoho.com/crm/developer/docs/api/v2/upload-attachment.html

 

 

11

 

 

 

22

 

 

33

 

 

Attachments are added. But i think because of my false request body files are not opening.

 

44

 

 

Any suggestion?

Categories:
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @zmansuri 

     

    I suspect that you are using the wrong dynamic value - body in the content bytes.  It should be file content or similar, - Attachment Content maybe?  You could confirm this by downloading the file and checking the file size but again, I guess that opening the file results in a corrupt file as ultimately the file content you have provided the API is not valid.  Fingers crossed.

     

    Please consider accepting my answer as a solution if it helps to solve your problem.

    Cheers
    Damien

    Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts, or take a look at my website. Thanks

  • ColForbin Profile Picture
    10 on at
    I am having the same issue.  I can get text files to upload and they are readable in the ServiceDesk request, but any other type of file such as png image file are uploaded but the resulting file is unreadable or corrupted.  I have tried using the File Content and body/content bytes dynamic values to no avail.  I suspect there is a problem with the raw binary representation that power automate is sending to the api.  When I send the file that was uploaded to a png analyzer I am seeing this:

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
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard