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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update file content wi...
Power Automate
Unanswered

Update file content without updating (some) metadata

(0) ShareShare
ReportReport
Posted on by

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?

Categories:
I have the same question (0)
  • Gdarmon Outlook Profile Picture
    372 on at

    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:

    1. Create a new flow.
    2. Add the HTTP connector to your flow.
    3. Configure the HTTP connector to make a request to the SharePoint API.
    4. In the request body of the HTTP connector, include the content of the .aspx file from the other SharePoint site.
    5. Save and test your flow.

    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard