Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Problems working with Excel dynamically in Power Automate

(0) ShareShare
ReportReport
Posted on by
Hi all,
I am trying to automate a flow in Power Automate that adds rows to a table in one or another Excel file according to variable .
  •     I have several Excel files with dynamic names, for example: “VASESPAÑOL variable.xlsx”.
  •     Within these files, there is always a table called “Table2”.
  •     The idea is that according to a variable that is obtained previously, Power Automate performs the action in the corresponding file and the table to add rows.
The problem.
  1.     The action “Add a row to a table” does not recognize the table structure when the name is dynamic, and does not allow me to map the columns.
  2.     If I specify a fixed file and table (without using the variable name), it works perfectly.
How can I make Power Automate recognize dynamically the columns of the table when the file name is variable?
 
I really appreciate any advice, examples or solutions you can offer me.
Thanks in advance!
 
  • narayan225 Profile Picture
    narayan225 2,390 on at
    Problems working with Excel dynamically in Power Automate
    I have worked on this problem in the past.
     
    You will need to create objects with the column name and value mapping and then add the collection of objects into the row field in the action.
     
    Like this:
     
     
    Hope this helps.
    Cheers!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard