cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bakgou1
Helper I
Helper I

Move Site Pages from one site to different site

Hello Community,

I'm new to Power Automate and trying to build a workflow that moves a "News post/news link" to a different site collection after 10 days from the created date. Is this achievable via Power Automate?

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
bakgou1
Helper I
Helper I

Hi @Brad_Groux ,

Sure, I'll write my next post with those guidelines. Thanks for sending it.

On the condition, I selected "Created", but not sure to use "is equal to" or "greater than" if I need to move after 10days from the created date. On addDays, the expression I wrote is "addDays(utcNow(),-10)". 

I've included my screenshots. 

 

2020-02-03 13_45_13-Window.png

 

2020-02-03 13_45_14-Window.png

 

 

View solution in original post

4 REPLIES 4
Brad_Groux
Community Champion
Community Champion

Yes. You could Run a Flow on a schedule (such as daily), then Get files (properties only) of the site library where the pages are initially created, then using a Condition, you could check the creation date using the utcnow() expression. If the creation date is 10+ days old, then use the Move file action to move the page file to the other site library.

If you could provide an expanded screenshot of your Flow and steps, we could likely better assist you. Also, for the best results, you may want to review How to write a good forum post.

👨🏻‍💻 If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.

bakgou1
Helper I
Helper I

Hi @Brad_Groux ,

Sure, I'll write my next post with those guidelines. Thanks for sending it.

On the condition, I selected "Created", but not sure to use "is equal to" or "greater than" if I need to move after 10days from the created date. On addDays, the expression I wrote is "addDays(utcNow(),-10)". 

I've included my screenshots. 

 

2020-02-03 13_45_13-Window.png

 

2020-02-03 13_45_14-Window.png

 

 

Brad_Groux
Community Champion
Community Champion

You should likely use less than or equal to, as you are looking for a date in the past (may take some testing). In the File to Move area of the Move file step, you'll want to put Current item.

Or, you could perform an OData filter on the Get items step and filter utilizing utcNow (as seen here). This still requires a for-each loop, it just removes the need for the condition.

👨🏻‍💻 If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.

Hi @bakgou1 ,

 

You should choose Less than or equal to.

The screenshot of the flow should as below:

1.png

 

Best regards,
Alice       
 
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (5,234)