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 / 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:
I have the same question (0)
  • 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

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard