web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add rows into an Excel...
Power Automate
Unanswered

Add rows into an Excel file that is dynamically created

(2) ShareShare
ReportReport
Posted on by 95

I'm am using flow to copy an Excel template to a new folder in SharePoint. The folder is dynamically created, so the folder and template file do not exist before the flow runs. I then want to add rows into a table inside the newly created template file in the new folder.

 

It seems I can't dynamically reference this path and file to use the add rows to table action. I get the error message "Cannot evaluate the parameter 'path.$.file' at design-time; it is empty or has a runtime expression." if I try a dynamical reference.

 

Any clever workarounds to achieve the same thing?

Categories:
I have the same question (1)
  • v-yamao-msft Profile Picture
    on at

    Hi @JohnMacDougall ,

     

    Thanks for feedback.

     

    The issue could be reproduced by me.

     

    I am afraid that it is a known issue for Excel online connector that dynamic contents are not supported in File and Table field.

     

    Here is one of the similar requests on Flow Ideas Forum, please vote it at here:

    https://powerusers.microsoft.com/t5/Flow-Ideas/Dynamic-content-in-File-amp-Table-inputs-Excel-Business/idi-p/107821

     

    Best regards,

    Mabel

     

  • wbeedge Profile Picture
    4 on at
  • manuelstgomes Profile Picture
    6,625 on at

    HI @wbeedge@JohnMacDougall, and @v-yamao-msft 

     

    I created a template with a workaround for this issue. You can find the explanation and the template here:

    https://manueltgomes.com/microsoft/flow/how-to-access-dynamic-path-excel/

     

    Hope it helps you

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    ​
    Cheers
    Manuel

  • Jorge83 Profile Picture
    4 on at

    I had similar problem last week and after a lot of workaround I found kind of solution that works for me. I had an excel template that needed to fill as demand, so I needed not to use the template but a copy each time and get tables from it, delete them and refill.

     

    So, I used the copy file by path from Ondrive connector and for every get table or delete a row actions I used ID variable from the copy file action as the file option and it works. Then I had problems with the add row action, doesnt work the same way, but if I removed the selected document place and I wrote the conector name of it also with the ID as the file option, it suddenly worked for me.

     

    Hope it helps

  • Community Power Platform Member Profile Picture
    on at

    Can you please show us with images? I don't quite understand what you did.

  • Lukas1 Profile Picture
    190 on at

    Hi @Jorge83,  I have the same issue than you had when trying to add new rows to an excel file and still can't figure it out. Can you please describe in more detail how you fixed it? Thanks!

  • kitUser Profile Picture
    27 on at

    I have the same problem. Any luck?

  • Lukas1 Profile Picture
    190 on at

    @kitUser No, I gave up on this...

  • Community Power Platform Member Profile Picture
    on at

    You have to get the file metadata, and then use the ID from the metadata. I get the Full Path from Looping through SharePoint Files and making sure it is the same name.

     

    Snag_2fbd7b3.png

  • nonono_username Profile Picture
    on at

    Hi Manuel, in you blog your example shows how to list rows from the table. Do you know how to add rows to that table?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard