cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Frequent Visitor

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

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

Frequent Visitor

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (7,581)