Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

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

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


Super User
Super User

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.





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 😀



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter

Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,524)