cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Frequent Visitor

Re: Move Site Pages from one site to different site

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
Highlighted
Super User II
Super User II

Re: Move Site Pages from one site to different site

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 👍.

Highlighted
Frequent Visitor

Re: Move Site Pages from one site to different site

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

Highlighted
Super User II
Super User II

Re: Move Site Pages from one site to different site

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 👍.

Highlighted
Community Support
Community Support

Re: Move Site Pages from one site to different site

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
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,217)