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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Power BI connecting to Business Central Online

(0) ShareShare
ReportReport
Posted on by 172

We recently migrated to the Cloud from On-prem and would like to start using Power BI. I was able to connect and the majority of the tables appear however the ones i am really looking for are giving me an error. I am using the Standard API that come with the system

1348.error.png

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,165 Moderator on at

    The standard API's are probably not your best choice for this use.

    Because this needs to be called in the context of a sales header.

    Look in the web-service folder for the item called saledDocumetLines instead.

    pastedimage1678828341425v1.png

  • Suggested answer
    YUN ZHU Profile Picture
    99,611 Super User 2026 Season 1 on at

    Alternatively, you can create new APIs pages, or publish existing pages to the Web Service. 

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-api-pagetype

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/webservices/web-services

    This can all be found in Power BI. Of course, the performance of APIs pages is better than that of Web Services

    Hope this helps as well.

    Thanks

    ZHU

  • Suggested answer
    Steven Renders Profile Picture
    5,692 Moderator on at

    The standard apis are good to start with, however the 'lines' apis can not be called directly. Better is to go via the salesOrders api, and in there expand the lines.

  • swenger Profile Picture
    172 on at

    What do you mean by expand the lines

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,165 Moderator on at

    In the standard API there is a special function for retrieving the order lines from a sales header.

    That is what is called expanding. So that functions makes some of the standard API not so suitable for Power BI reports. Especially API's where the data consists of head and lines like sales orders and purchase orders.

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,060 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,086 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 700 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans