How to Choose Between Get Items and Get Files in Power Automate
Question details
The user needs to know whether to select the Value output from Get items or Get files when importing SharePoint images into a list using Power Automate, and how to manage the automatically created Apply to each loops.

- Product
- Power Automate
- Device & OS
- not provided
- Scenario
- Importing images from a SharePoint library into a SharePoint list using a Power Automate workflow.
- Observed behavior
- The user is confused about which data retrieval action to choose and whether the default 'Apply to each 2' naming affects the workflow.
Verify the exact location of your source data in SharePoint; you must know whether your images are stored in a standard SharePoint List or a Document Library before building your flow.
Select the Correct Data Retrieval Action
Choose 'Get files' or 'Get items' based on where your SharePoint data is stored.
In Power Automate, the actions 'Get items' and 'Get files' serve two distinct purposes based on the SharePoint data structure you are querying.
Select the 'Get files (properties only)' action when your images or documents are stored in a SharePoint Document Library. This action retrieves the metadata and properties of the files.
Select the 'Get items' action when your data is stored as standard records inside a SharePoint List.
When configuring the next step in your flow (like mapping the images to a new list), ensure you select the 'Value' dynamic content that directly corresponds to the specific action you used above.

Manage 'Apply to each' Loops Efficiently
Understand how Power Automate automatically handles arrays and how to structure your loops.
Boost Your Productivity with WPS Office
While Power Automate handles your SharePoint workflows, consider WPS Office for your document creation needs. It is a free, highly compatible, and lightweight alternative to Microsoft Office that allows you to manage Word, Excel, and PowerPoint files effortlessly.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the Software: Run the downloaded installer and follow the simple on-screen instructions to set up the software.
- 3. Open and Edit: Launch WPS Office and seamlessly open your existing Microsoft Office documents without worrying about formatting issues.

Frequently Asked Questions
Can I use both 'Get items' and 'Get files' in the same Power Automate flow?
Yes. If your workflow requires reading records from a SharePoint list and also retrieving documents from a separate document library, you can add both actions independently within the same flow.
Why does Power Automate automatically create an 'Apply to each' action?
The 'Value' output from SharePoint retrieval actions returns an array, meaning it contains multiple records or files. Power Automate automatically adds an 'Apply to each' loop to iterate through and process each individual item in that array.
Does renaming an 'Apply to each' loop break my workflow?
No. Renaming actions in Power Automate is safe and highly recommended for keeping your flow organized. The underlying logic and data connections remain intact regardless of the display name you choose.




