How to Use Dynamic File Paths to Update Excel in Power Automate
Question details
The user needs to design a Power Automate flow that processes SharePoint CSV files, matches UniqueID values to select specific folders, and dynamically updates existing Excel tables.
- Product
- Microsoft Power Automate
- Device & OS
- not provided
- Scenario
- Automating data workflows from SharePoint CSV files to existing Excel tables using dynamic folder paths.
- Observed behavior
- The user requires a complex custom flow design to handle SharePoint folders, CSV parsing, list lookups, and dynamic Excel table updates.
Before creating your flow, ensure your target Excel file contains properly formatted Tables (Insert > Table), as Power Automate requires named tables to update specific rows.
Designing a Flow with Dynamic Excel File Paths
Follow these core structural steps to build a flow that reads CSVs, matches IDs, and dynamically targets Excel tables, then consult the community for advanced expressions.
Implementing dynamic file paths in Power Automate requires constructing variables at runtime rather than hardcoding file selections from the dropdown menus.
Use the 'Get file content' action in SharePoint to read the CSV data containing your UniqueID values.
Add a 'Compose' action with a split expression or use a CSV parser connector to split the CSV rows and map them to dynamic JSON arrays.
Use a 'Condition' or 'Apply to each' loop to match the UniqueID. Create a custom string variable that constructs the dynamic SharePoint folder path based on this ID.
Add the 'Update a row' Excel Online (Business) action. Click the 'Enter custom value' option for the File and Table fields to input your dynamic path variables instead of selecting a static file.
For complex template copying and custom list lookups, post your exact folder structure, column names, and requirements in the Microsoft Power Automate Community where experts can provide detailed expression guidance.
Manage Your Spreadsheets Effortlessly with WPS Office
While Microsoft Power Automate relies on a Microsoft 365 subscription for cloud workflows, you can handle complex spreadsheet data, CSV file management, and daily reporting tasks effortlessly on your desktop using WPS Office. It provides powerful data processing tools in a lightweight, completely free suite.
- 1. Download and Install: Visit the official WPS website and download the free WPS Office installer.
- 2. Open Your Data: Launch WPS Spreadsheet and open your CSV or XLSX files directly with full compatibility.
- 3. Analyze and Edit: Use built-in formulas, data validation, and spreadsheet tools to manage your workflows efficiently.

Frequently Asked Questions
Why does Power Automate require a Table to update Excel rows?
Power Automate relies on the Microsoft Graph API, which interacts specifically with named objects like Tables in Excel to accurately identify column headers and rows for updates, rather than relying on unstructured sheet data.
Can I use dynamic paths in the Excel 'Update a row' action?
Yes. By selecting 'Enter custom value' in the File and Table dropdowns of the action, you can pass dynamic variables or expressions that generate the exact file path and table name at runtime.
How do I extract data from a CSV in Power Automate without premium connectors?
You can use the native 'Compose' action with a split expression to separate the CSV into individual rows based on line breaks, followed by an 'Apply to each' loop to separate the comma-delimited columns into usable dynamic values.




