Forum Discussion

kasun_rumesh's avatar
kasun_rumesh
Helper II
1 year ago
Solved

Microsoft Dynamic 365 business Central API data fetch using Fabric note book

My company’s IT team has built APIs to access Microsoft Dynamics 365 Business Central data. I successfully tested these APIs using Postman. However, when I try to call the API to obtain the bearer ac...
  • v-venuppu's avatar
    v-venuppu
    1 year ago

    Hi kasun_rumesh ,

    The Client Credentials Flow is ideal for non-interactive scenarios like Fabric notebooks. It allows your script to get an access token using just the Tenant ID, Client ID, and Client Secret, without needing user login. This is done by calling Azure AD's token endpoint with the appropriate parameters. Make sure your Azure AD app has the necessary application-level API permissions (e.g., Financials.ReadWrite.All) and that admin consent has been granted. Once the token is received, you can use it to call the Business Central API.

    Thank you.