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

PWREduCon768x460.png

Join us at PWR EduCon - A Power Platform Conference

Learn from the top Power BI, Power Apps, Power Automate & Power Virtual Agents experts!

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Users online (3,108)