Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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:
 

 

 

  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,376 Most Valuable Professional on at
    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492