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 / Get First table only f...
Power Automate
Answered

Get First table only from Get tables

(0) ShareShare
ReportReport
Posted on by 697

Hello,

 

I am trying to avoid an 'Apply to Each' because I know there is only 1 table in my sheet. From googling I assume I need a First() Function here but I can't seem to get it : 

 

CharlesBrewer_0-1691697661628.png

Any help here is appreciated.

 

Categories:
I have the same question (0)
  • CharlesBrewer Profile Picture
    697 on at

    I also tried : 

    first(outputs('Get_tables')?['body/value'])
    But I just get this error : 

    Http request failed: the content was not a valid JSON. Error while parsing JSON: 'After parsing a value an unexpected character was encountered: @. Path 'message', line 1, position 71.'

     

    I am beginning to think I can't pull the table name this way 😕 To try other things.

  • CharlesBrewer Profile Picture
    697 on at

    Nevermind I overthought it. I was able to do 'Table 1' as a custom and that seems fine.

  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    If you want to get the name you would use the below expression:

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

     

    Here it is in a screenshot:

    Get First TableGet First Table

  • creativeopinion Profile Picture
    10,508 Moderator on at

    I recently uploaded a YT Tutorial that covers how to dynamically select a table. Please reference this part of this part of the video. 

     

    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!

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok

     

  • CharlesBrewer Profile Picture
    697 on at

    Thanks @wskinnermctc  noted for next time!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard