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 Automate
Answered

Usage of get table

(0) ShareShare
ReportReport
Posted on by 88

Hi,

I have a file that is recreated each night.

The file does not contain a table so I have used the create table in PA to create a table (table1) which works OK.

I am using Powerautomate to import the spreadsheet which when run manually works.

However, when scheduling, because the table is recreated each time, the flow fails and a hex string is in the import table name because the uid is different each time the tabel is createdl.

I think I need to use get tables function in PA to get the table ID and then pass it to the create sharepoint list step but the problem is, unless select the dropdown from the previous step, I am unable to map the fields from the excel spreadsheet to the sharepoint list.

Could anyone possibly help on how I can acheive this?

Thanks,

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @MikeWJS create a variable, assign the value to table name when you create table, assign the same value to table when you list rows in a table, hope this helps

    jinivthakkar_0-1646748400573.png

    if you don't have the table name then you need to have a fixed format to generate a predict a table name dynamically e.g. Mar082022 

     

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • MikeWJS Profile Picture
    88 on at

    Thanks, this is useful, but the issue lies with the step afterwards where I am trying to map the fields in sharepoint to the fields in the spreadsheet.

     

    shot.png

    If I choose the dropdown the fields from the spreadsheet appear in the dynamic content windows but not if I use the variable so I am unable to map it.

    Thank you very much for your response though 😞

  • MikeWJS Profile Picture
    88 on at

    If anyone could help me out I would be extremely appreciative. I have spent 6 hours today trying to find a solution and have been pushed to the brink of insanity 😄

  • Verified answer
    jinivthakkar Profile Picture
    4,187 on at

    @MikeWJS if the options dont come automatically, you can type in the name manually 

     

    Go to field it will open menu for Dynamic content and expression, then paste this in expression content items('Apply_to_each')?['ColumnName']

    and click OK.

    Do a test run, and then repeat this for every column which is not appearing directly in Dynamic content.

     

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • MikeWJS Profile Picture
    88 on at

    @jinivthakkar Thanks so much for your reply and help. I am currently on annual leave but will attempt this when I return and let you know how I get on!

    Once again, many thanks!

  • MikeWJS Profile Picture
    88 on at

    @jinivthakkar Thank you so much for your response, using the items method above this worked!

    The flow is now working exactly as expected, here is what I ended up with, flow.png

    Although the flow works fine, it errors out.

    This is because the number of rows in the spreadsheet is unknown. I therefore have to set the table to be created for 5000 rows but after the actual data is imported, it creates lots of blank entries so expects a number instead of a blank record. How can I possibly suppress this error please?

    Once again, thanks for your help. I may mark this question as answered and open another question for the error above.

     

  • jinivthakkar Profile Picture
    4,187 on at

    @MikeWJS yes please close this question and open a new thread for the issue

  • MikeWJS Profile Picture
    88 on at

    Thanks again!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227

#2
David_MA Profile Picture

David_MA 204 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 177

Last 30 days Overall leaderboard