The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
When I would like to retrieve salesOrderLines from Business Central in PowerBI, I get the following error message.
DataSource.Error: Dynamics365BusinessCentral: Aanvraag mislukt: De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht. (You must specify an Id or a Document Id to get the lines. CorrelationId: 763e20e8-0a35-49a1-9ffd-ec50e146a050.)
Details:
DataSourceKind=Dynamics365BusinessCentral
DataSourcePath=Dynamics365BusinessCentral
Url=https://api.businesscentral.dynamics.com/v2.0/ACCEPTATIE/api/v2.0/salesOrderLines?company=Schut Papier
This is the source.
let
Bron = Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, null),
ACCEPTATIE = Bron{[Name="ACCEPTATIE"]}[Data],
#"Schut Papier" = ACCEPTATIE{[Name="Schut Papier"]}[Data],
#"v2 0" = #"Schut Papier"{[Name="v2.0"]}[Data],
salesOrderLines_table = #"v2 0"{[Name="salesOrderLines",Signature="table"]}[Data]
in
salesOrderLines_table
Looking for the same solution. Just found this (which helped me): Solved: Connecting to Dynamics 365 Business Central API v2... - Microsoft Fabric Community