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
Solved! Go to Solution.
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.
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 👍.
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.
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:
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.
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
52 | |
41 | |
39 | |
36 | |
35 |
User | Count |
---|---|
71 | |
68 | |
68 | |
54 | |
49 |