Skip to main content
Community site session details

Community site session details

Session Id : ePLCqqlTpffYQGax/AesPk
Power Automate - Building Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 13 May 2022 11:05:32 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

 

  • Expiscornovus Profile Picture
    32,182 Most Valuable Professional on 16 May 2022 at 12:12:45
    Re: Error getting pages from Site Pages library to other library based on metadata

    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete