cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sofie_D
Level 8

Duplicate sharepoint list with Flow

I have a sharepoint list in which a flow sometimes adds items, but at the start of every year it should be stored in a new list, that is identical to the previous one.

Is there a way to automatically create an empty list with the same columns when needed? Right now a new one is manually added every time.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Duplicate sharepoint list with Flow

Hi @Sofie_D,

 

Do you want to create an empty SharePoint list with same columns as previous one within Microsoft Flow automatically?

 

Creating an empty SharePoint list is not supported in Microsoft Flow currently, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

In addition, you could consider take a try to delete all original items within the SharePoint list at the start of every year as an alternative way. I have made a test on my side and please take a try with following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a Condition, click "Edit in advanced mode", type the following formula:
@equals(utcNow('MM/dd'), '01/01')
  • Within "If/yes" branch of Condition, add a "Get items" action, specify Site Address and List Name. Then add a "Apply to each" action, input parameter set to output of "Get items" action. Within "Apply to each" action, add a "Delete item" action, specify Site Address and List Name, Id field set to ID dynamic content of "Get items" action.
  • Under Condition, add a "Create item" action.

Image reference:19.JPG

 

20.JPG

 

The flow works successfully as below:21.JPG

 

 

 

Best regards,

Kris

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

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Duplicate sharepoint list with Flow

Hi @Sofie_D,

 

Do you want to create an empty SharePoint list with same columns as previous one within Microsoft Flow automatically?

 

Creating an empty SharePoint list is not supported in Microsoft Flow currently, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

In addition, you could consider take a try to delete all original items within the SharePoint list at the start of every year as an alternative way. I have made a test on my side and please take a try with following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a Condition, click "Edit in advanced mode", type the following formula:
@equals(utcNow('MM/dd'), '01/01')
  • Within "If/yes" branch of Condition, add a "Get items" action, specify Site Address and List Name. Then add a "Apply to each" action, input parameter set to output of "Get items" action. Within "Apply to each" action, add a "Delete item" action, specify Site Address and List Name, Id field set to ID dynamic content of "Get items" action.
  • Under Condition, add a "Create item" action.

Image reference:19.JPG

 

20.JPG

 

The flow works successfully as below:21.JPG

 

 

 

Best regards,

Kris

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

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 372 members 4,828 guests
Recent signins:
Please welcome our newest community members: