How to Move SharePoint List Items into Matching Project Folders
Question details
The user needs to move or recreate SharePoint list items into specific project folders using a Power Automate flow, but wants to avoid infinite loops caused by creating new items in the same list.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Organizing SharePoint list items dynamically into folders based on matching project numbers.
- Observed behavior
- When the Power Automate flow creates a new list item within a folder in the same SharePoint list, it triggers the flow to run again, causing an infinite loop.
Ensure you have Edit or Owner permissions for the SharePoint list and basic familiarity with creating and modifying Power Automate workflows.
Use a Secondary SharePoint List to Prevent Trigger Loops
The safest method to avoid recursive triggers is to move the list items into a designated secondary SharePoint list that handles the folder structure.
By separating the source list from the destination list, the 'When an item is created' trigger will only fire for the original list, completely eliminating the risk of an infinite loop in your Power Automate flow.
Set up a new SharePoint list that mirrors your original list's columns. Ensure you enable the 'Folder Content Type' in the list's advanced settings so it can store folders.
In Power Automate, set your flow trigger to 'When an item is created' and point it specifically to your original (source) SharePoint list.
Add a 'Create item' action in your flow. Configure it to point to your new destination list and dynamically select the Folder Path based on your project number field.
Add a final action to either delete the original item using the 'Delete item' action or use 'Update item' to change a status column to 'Moved', keeping your source list clean.

Use Trigger Conditions and SharePoint REST API
If maintaining a single list is mandatory, use trigger conditions to stop the loop and the SharePoint REST API to precisely target folder creation.
Enhance Your Document Workflow with WPS Office
While SharePoint handles your list management and cloud storage, you need a reliable office suite to manage the actual documents stored in those project folders. WPS Office provides a lightweight, highly compatible, and free alternative to Microsoft Office for creating, editing, and sharing your workflow documents.
- 1. Download the Installer: Visit the official WPS website to download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded file and follow the quick on-screen instructions to set up the software.
- 3. Open SharePoint Documents: Sync your SharePoint folders to your local drive and open your project documents directly in WPS Office with zero formatting loss.

Frequently Asked Questions
Why does moving an item in the same SharePoint list trigger an infinite loop in Power Automate?
When Power Automate is set to trigger 'When an item is created or modified', recreating or updating that item within a folder in the same list registers as a new creation or modification event. This causes the flow to repeatedly trigger itself.
Can I use folders in standard SharePoint lists?
Yes, but it is not enabled by default. You must navigate to the list's Advanced Settings and select 'Yes' under 'Make New Folder command available' to allow folder content types.
How do I set a trigger condition in Power Automate?
Click the three dots (ellipses) on your trigger step, select 'Settings', scroll down to 'Trigger Conditions', and click 'Add'. You can write expressions here to ensure the flow only runs when specific column criteria are met.




