web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : p/fA3Zlkw9+ULdQgEI9i/5
Power Automate - Building Flows
Suggested answer

Batch HTTP Request - All works by Files/add

Like (0) ShareShare
ReportReport
Posted on 2 Sep 2024 15:56:11 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:
 

 

 

  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on 02 Sep 2024 at 21:46:04
    Batch HTTP Request - All works by Files/add
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2