web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 152

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,035 Moderator on at
    RE: Power BI connecting to Business Central Online

    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.

  • swenger Profile Picture
    152 on at
    RE: Power BI connecting to Business Central Online

    What do you mean by expand the lines

  • Verified answer
    Steven Renders Profile Picture
    5,648 Moderator on at
    RE: Power BI connecting to Business Central Online

    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.

  • Suggested answer
    YUN ZHU Profile Picture
    91,218 Super User 2025 Season 2 on at
    RE: Power BI connecting to Business Central Online

    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
    Inge M. Bruvik Profile Picture
    1,035 Moderator on at
    RE: Power BI connecting to Business Central Online

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 3,227

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,866

#3
Sohail Ahmed Profile Picture

Sohail Ahmed 2,682 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans