Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ShahrukhHB
New Contributor II

How to create Connection with Business Central Web Service API's using Fabric Notebook with OAuth2

Hi Members,

I created 1 Workspace and Get some Data from Business Central Web Service API's then i Applied incremental Refresh.

Incremental Refresh does not allow to Load the Data in LakeHouse so i am loading them into Warehouse.

Now my Question is i want to Load first into Lakehouse then I want to Load data into Warehouse with Partition for that i want to Use Notebook in Lakehouse to fetch data from Business Central. 
But when i am trying to use That API on Web Getting Below Error

{"error":{"code":"Authentication_InvalidCredentials","message":"Web service access key is no longer supported as authentication. Please use OAuth.  CorrelationId:  eacc619a-d1f0-48ee-812d-5e7929ecfd0f."}}


also Suggest me Best Way to create Warehouse for Business Central.

current Approach   Businss Central Web Service API ------------> DataFlow Gen2(With Incremental Refresh)-------------> Load into Warehouse

1 ACCEPTED SOLUTION
v-saisrao-msft
Honored Contributor II

Hi @ShahrukhHB,

Thank you for reaching out to the Microsoft Fabric Forum Community.

 

The error message indicates that Web service access keys are no longer supported for authentication when accessing Microsoft Dynamics 365 Business Central APIs. You are required to use OAuth2 authentication instead.

vsaisraomsft_0-1741347691807.png

For your reference:

Web services authentication" - Business Central | Microsoft Learn

If this post helps, then please give us โ€˜Kudosโ€™ and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you.

View solution in original post

3 REPLIES 3
nilendraFabric
Honored Contributor

Hello @ShahrukhHB 

 

seems like you are using Basic Auth which is deprecated. Use OAuth2 with Azure App Registration

 

Redirect URI: `https://businesscentral.dynamics.com/OAuthLanding.htm`

 

API Permissions: Add `Dynamics 365 Business Central` with `API.ReadWrite.All`

 

v-saisrao-msft
Honored Contributor II

Hi @ShahrukhHB,

Thank you for reaching out to the Microsoft Fabric Forum Community.

 

The error message indicates that Web service access keys are no longer supported for authentication when accessing Microsoft Dynamics 365 Business Central APIs. You are required to use OAuth2 authentication instead.

vsaisraomsft_0-1741347691807.png

For your reference:

Web services authentication" - Business Central | Microsoft Learn

If this post helps, then please give us โ€˜Kudosโ€™ and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you.

v-saisrao-msft
Honored Contributor II

Hi @ShahrukhHB,


I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

Helpful resources

Announcements
Top Solution Authors
Top Kudoed Authors
Users online (9,586)