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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamically identify t...
Power Automate
Unanswered

Dynamically identify table in Excel Spreadsheet

(0) ShareShare
ReportReport
Posted on by 63

I have an Excel Spreadsheet where there is a template on the main page and on the second page I have a table to add data from a SharePoint List into. The template on the first page then references this first row of data in the table to populate the template. To have the references work, I have to keep all the data on the first row.

 

I have tried Many different processes to accomplish this, all of which failed because of the excel connector limitations (File is locked by unknown, Document not available, etc.). 

My current process is I copy the template document to a new folder, add the single row of data, change the file name and email it off.

This is where the catch is. It seems every time the Excel file is copied from the template Excel file, the Table seems to have a new GUID. Therefore the Add a Row into a Table action breaks. Unless I rebuild the action and point it at the newly created file. 

So I need to capture the new table's GUID dynamically and use that to point the data to.

 

This shows it works with the initial document.

ExcelCopy1.png

 

If I copy the excel template and try to add a row to the table, the table name I chose no longer exists and fails.

ExcelCopy2.png

 

Also, If I try to use a Get tables action and get the first table with 

first(outputs('Get_tables')?['body/value'])?['name']

It errors out saying the columns are no longer present because I have to, again, remap the new table in the Add a row into a table action.

Buloke_0-1714075384776.png

 

Categories:
  • creativeopinion Profile Picture
    10,508 Moderator on at

    @Buloke You'll need to add a few more actions to your flow. I cover how to dynamically select a table in this YT Tutorial: How to DYNAMICALLY Select a Table in the List Rows Present in a Table Power Automate Action

     

    Although I use the List Rows Present in a table action in my demo—the Add a Row to a table can be swapped in.

     

    IN THIS VIDEO:

    ✅ How to create an Automated Cloud Flow

    ✅ How to dynamically select a Table in the List Rows Present in a Table Action

    ✅ How to use the Parse JSON action

    ✅ How to use the When a file is created (properties only) trigger

    ✅ How to avoid the Apply to Each Action

    ✅ How to Create an Item in SharePoint from Excel Data

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard