Table of Contents

Create Business Central API v2 connection

This action creates a connection for Dynamics 365 Business Central API v2, and is intented for dynamically connecting to different Business Central subscriptions during the execution of a Flow.

If you store the credentials for the Dynamics 365 Business Central API outside Flow (for example in your own Azure SQL or PostgreSQL database), use this action to dynamically create a connection for the Business Central API. The connection returned from the action must then be used as the input to the Dynamic connection property of a Dynamics 365 API request action, for example the REST API Request with paging action.

This enables dynamically connecting to different Dynamics 365 Business Central subscriptions based on parameters or conditions in a Flow.

Note

Before you can create a Dynamics 365 Business Central APIv2 Connection, you need to create a Microsoft Entra ID App (also known as a Service Principal), and grant it access to the Business Central API. Profitbase Flow will call the Business Central API on behalf of the Service Principal, using its credentials.

Read about how to create a Service Princial here.

img

Properties

Name Type Description
Tenant ID Required The Microsoft Entra Tenant Id associated with the Dynamics 365 Business Central subscription. You can find it in the Azure portal where you created the Service Principal.
Client ID Required The id of the Entra ID App which has been granted access to the Business Central API.
Client secret Required The client secret of the Entra ID App which has been granted access to Business Central API.
Environment Required The Business Central environment to target (Production, Sandbox, Test, etc)