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 Apps / Power Query in Excel u...
Power Apps
Unanswered

Power Query in Excel using Business Central API

(0) ShareShare
ReportReport
Posted on by 4

Hi All, 

I'm new to this community but have a feeling I'll be spending a bit of time here. Currently, I'm looking for some help.

 

I am an experienced report builder and Business Central consultant who is comfortable using Power Query in both Power Bi and Excel (depending on the intended outcome) but I am not a technical user with detailed understanding of APIs and web services.

 

Traditionally, when connecting Excel to Business Central as a data source, I have used Odata web service feeds. These are simple to use but often require a web service creating within Business Central. 

As of last year, Power Bi uses v2.0 API's that connect to many more Business Central tables without the need to configure any additional web services. This is also Microsofts stated preferred method moving forward.

 

I am trying to use the API's within Excel power query to reap these benefits of more connections and future proofed reports. (I assume web services will be deprecated at some point).

 

However, whilst I have successfully connected to one of these APIs (after a bit of URL trial and error), I cannot expose the data in a table format for more than one record at a time.

 

Here is my connection successfully made to the sales order table. using this URL. 

= Json.Document(Web.Contents("https://api.businesscentral.dynamics.com/v2.0/SANDBOX/api/v2.0/salesOrders?company=Mnfr_Template"))

 

Query1.png

If I click on 'List' and then select a record, I can see all the data for that record. I can also convert this into a table rather than the default list format that opens.

 

Try as I might, I have no idea how to show a table of all of the records. If anybody can advise how to show the full contents of the table, I'd be very grateful.

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

    Please ignore, I have literally just resolved this.

    Thank you

  • Guy_McKenzie Profile Picture
    4 on at

    If anybody knows the syntax to return the lines from a sales order/invoice table, that would be very helpful.

  • Nick_Dekker Profile Picture
    on at

    Hi Guy,

    How did you solve this issue? 

  • kazuma6666 Profile Picture
    4 on at

    Always helpful when you find someone who has the same issue as you, they solved it and didn't post the solution... Any idea how to solve this issue?

  • kazuma6666 Profile Picture
    4 on at

    There is no expand next to this list. I guess it goes through a different interface. I can drill down, and get the data, record by record. But to get all the data this way, it would mean I need to make hundreds of queries. Not very useful... Here is how it looks like in PowerQuery:

    Untitled.jpg

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 372 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 303 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 238 Super User 2026 Season 1

Last 30 days Overall leaderboard