Skip to main content

Notifications

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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,021 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,500 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
    81,360 Super User 2025 Season 1 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,021 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans