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 / Batch HTTP Request - A...
Power Automate
Suggested Answer

Batch HTTP Request - All works by Files/add

(0) ShareShare
ReportReport
Posted on by 2
 
 

Hi,

I'm trying to add a request to add a file to a folder using a Send a HTTP Request to SharePoint action. As an FYI, the rest of the requests work as expected. Also, I can use a single HTTP request to create the file. With this in mind, I can't quite figure out where I'm going wrong...This question is more for my own sanity, given that I do have alternatives. If I know what I'm doing wrong, it could help me in the future.

I have tried changing the content type a few times, but no joy. I've also tried to amend the <Folder_Path> by adding/removing different parts of the URL. I've tried adding the content length too. Again, the other request to work as expected, but the Files/add request, but I get the error:
 

 

 

Categories:
I have the same question (0)
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    Can you upload a screenshot please?
    Is this the URI you are using?
    https://<your-tenant>.sharepoint.com/sites/<your-site>/_api/web/GetFolderByServerRelativeUrl('/sites/<your-site>/Shared Documents/<folder-name>')/Files/add(overwrite=true,url='<filename>')
     
    The file content should be in the body.
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard