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 / Error getting pages fr...
Power Automate
Unanswered

Error getting pages from Site Pages library to other library based on metadata

(0) ShareShare
ReportReport
Posted on by 48

Hi everyone,

 

We're pretty new to Power Automate, but we're trying to move newspages/pages in the SitePages library to another 'archive' library based upon a column 'Archiveren' (choice field yes/no/later). So if you change this column in the site pages library, it should automatically start a flow in which the page or pages are moved to a library called 'testpages'

 

If yes, then the page should be moved to the archive library.

 

What we did is shown in the screenshots attached:

1.Choose 'when a file is created or modified in a folder' - we gave the ID of the site pages library in the library 'name field'

2. Get files (properties only) 

3. Condition: if 'Archiveren' = 'ja' (yes)

4. Get file metadata >Copy file (in the new library - testpages) > Delete file (in the sitepages library)

 

Anyone care to help us out? Big thanks in advance!

 

Schermopname (191).pngSchermopname (192).pngSchermopname (193).png

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,918 Most Valuable Professional on at

    Hi @AB_,

     

    I had a quick look at your current setup. I see the Copy file is using the DisplayName of the file.

     

    However, as far as I am aware the 'Het pad naar het doelbestand' field expects a destionation folder. So, in your setup Testpages should be sufficient as a value.

     

    Additionally, you could also check with Get changes for an item or a file (properties only) action if the Archiveren? field value has change since the last major version.

     

    Below is an example of all those things.

    I also added the same custom fields as in the source library to my target library.

     

    copyfile_spo.png

     

     

    You also might want to use a trigger condition expression if Archiveren? is equal to yes. This will prevent the flow from triggering a lot 😀

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard