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 / Use "send an HTTP requ...
Power Automate
Unanswered

Use "send an HTTP request to SharePoint" to copy file?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I was wondering if it is possible to send an HTTP request to copy a "aspx file" from one site collection to another site collection?


Something like this:
httpcopy.PNG

 

Appreciate any thoughts and answers Cat Happy

Categories:
I have the same question (0)
  • Office365Master Profile Picture
    338 on at

    Have you tried using the SharePoint "Get file content" action, following by the SharePoint "Create file" action?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello,

    Yes I tried this, but it didn't seem like it is possible to create a .aspx file.
    (I have full controll of the site so I'm allowed to add things to the site without using flow)

    FlowFlowCreate file failedCreate file failedError messageError message

  • Office365Master Profile Picture
    338 on at
    Hmmm, that's unfortunate. Given that though, I would suggest that the underlying API that the SharePoint connection "Create file" action invokes may well consume the same SharePoint REST API you are trying in invoke directly, and hence perhaps fails for similar reasons. Given you particular use case, specifically pertaining to the "Site Pages" library, I would imagine there are a lot of possible reasons which may or may be possible to overcome. For example I found this article: https://sharepoint.stackexchange.com/questions/218520/need-permissions-uploading-aspx-page-to-my-own-sharepoint-site Broadly though I would suspect the type of file you are trying to copy (i.e. aspx) is irrelevant, however you could test that with another type of file, say html, to at least rule that out. Also perhaps try say the default document library as another way to at least determine whether the root cause is the library you are trying to copy the file too as well as the type of file you are trying to copy...

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 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard