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

Notifications

Announcements

No record found.

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,111 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
    95,548 Super User 2025 Season 2 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

  • Verified answer
    Steven Renders Profile Picture
    5,672 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,111 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans