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 worksheet by id us...
Power Automate
Answered

Get worksheet by id using HTTP

(0) ShareShare
ReportReport
Posted on by 36

In my Flow, I use the "Invoke an HTTP request" action to connect to an Excel file in a document library in SharePoint Online. I've used John Lius excellent tutorial on using Microsoft Graph to read an Excel file and it works fantastic.

 

However, the explanation given uses the sheet name and I need to use the id instead. The Excel file I'm trying to read is an exported SharePoint list and unfortunately the query name is used to name the sheet like this:

 

 a.png

So everytime the list is exported, a new query is used and a new name appears in the sheet. So when the flow runs, I don't know the sheet name. But I do know that it is the first (and only) sheet. According to Microsoft Docs you can use an id instead of the name to get the sheet, but I don't understand the syntax.

 

This is my action using the sheet name:

b.png

Can anyone please tell me the syntax to get the first worksheet in the Excel file without using the name.

I've tried the following variants:

...workbook/worksheets(0)
...workbook/worksheets[0]
...workbook/worksheets{0}

...workbook/worksheets/0

...workbook/worksheets/(0)
...workbook/worksheets/[0]
...workbook/worksheets/{0}

But this only gives me 404 "The requested resource doesn't exist." or 400 "Empty segment encountered in request URL."

 

This is driving my crazy, please help!

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at
    Hi,

    If you follow Johns tutorial on his blog post. He explains it better there.

    http://johnliu.net/blog/2019/5/workarounds-needed-to-use-the-excel-connector-in-microsoft-flow

    —Josh
    If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others
  • Papageno Profile Picture
    36 on at

    Not really what I was looking for, but thanks for your comment. I wasn't aware of his blog, lots of goodies there.

  • Verified answer
    Papageno Profile Picture
    36 on at

    Hi, guys!

    I finally got this working and thought that I would share my findings.

     

    To get a worksheet by name, you can use this:

    ...workbook/worksheets/nameOfTheWorkSheet... (see my first post).

     

    To get the first worksheet regardless of name, you can use this:

    ...workbook/worksheets/%7B00000000-0001-0000-0000-000000000000%7D...

     

    Here's my action:

    Untitled.png

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard