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 Drilldown to Sales Invoice Lines

(1) ShareShare
ReportReport
Posted on by 4
I am not sure if this should be raised here or in a Power BI Forum.
 
I am new to Business Central and Power BI and I am trying to create a report which lists the transactions in the general ledger and them be able to drill down to get the sales invoice details.
 
I have picked up the General Ledger transactions from Advanced APIs -> Microsoft/reports/Finance/beta -> generalLedgerEntries and can drill down into Standard APIs v2.0 -> salesInvoices to get the invoice header information, however I am unable to pull through the sales invoice lines. I can do this for a single invoice by clicking the right clicking the Table entry in the salesInvoiceLines column and adding a new query however this creates a table for a single invoice. I have tried using the Standard APIs v2.0 -> salesInvoiceLines data source to create a query however this returns an error below:
 
DataSource.Error: Dynamics365BusinessCentral: Request failed: The remote server returned an error: (400) Bad Request. (You must specify an Id or a Document Id to get the lines.  CorrelationId:  ???.)
Details:
    DataSourceKind=Dynamics365BusinessCentral
    DataSourcePath=Dynamics365BusinessCentral
    Url=https://api.businesscentral.dynamics.com/v2.0/PRODUCTION/api/v2.0/salesInvoiceLines?company=???
 
Is what I am trying to create possible with Power BI or should I be looking at a different solution.
I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    95,647 Super User 2025 Season 2 on at
    This is the design of this standard API.
    If you want to get Posted Sales invoice lines from Power BI, the easiest way is to publish a Web Service.
    For example,
     

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 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans