
Announcements
I need to update .aspx files in the SitePages library of a SharePoint site with the content of an .aspx file from another SharePoint site. It seems to be a simple task, but I can't get it to work.
Here's some context:
I have a bi-lingual site with English as the default language. The pages that need to be updated are the translated pages. To not break the translate functionality, the "translation source ID" and "Item ID" that live in the columns of the SitePages list must stay the way they are.
Here are some things I tried, and failed:
- Update file: I can fetch the new content from an .aspx file. The "Update file" action does also update all the metadata in the SharePoint list, however.
- Upate file properties: I can fetch the file properties of the old file beforehand to write them back after the "Update file" action overwrites them. The "Update file properties" action does not show the needed fields of the SitePages list, however.
Is there a way to accomplish the task?
Hi,
To update .aspx files in the SitePages library of a SharePoint site with the content of an .aspx file from another SharePoint site without updating metadata, you can use the HTTP connector in Power Automate. The HTTP connector allows you to make HTTP requests to RESTful APIs 1.
Here are the steps to update .aspx files in the SitePages library of a SharePoint site with the content of an .aspx file from another SharePoint site without updating metadata using the HTTP connector:
By using the HTTP connector, you can update .aspx files in the SitePages library of a SharePoint site with the content of an .aspx file from another SharePoint site without updating metadata.
Gill