Connector Guide: Dynamics 365 Business Central
Configure the Universal Adapter for Business Central using Service-to-Service (S2S) authentication. Includes permission configuration and Web Service publishing for ABA generation.
The S2S Authorization Model
Demiton connects to Dynamics 365 Business Central (SaaS) using OAuth 2.0 Service-to-Service (S2S) authentication. This method uses an Azure App Registration rather than a licensed user account, ensuring connection stability during password rotations or staff turnover.
Phase 1: Azure App Registration
You must create a "digital identity" for Demiton in your Azure tenant.
Step 1: Register the App
- Log in to the Azure Portal (portal.azure.com).
- Navigate to Microsoft Entra ID > App registrations.
- Click + New registration.
- Name:
Demiton Engine. - Supported account types: Accounts in this organizational directory only (Single tenant).
- Click Register.
Step 2: Create the Secret
- In the left menu, select Certificates & secrets.
- Click + New client secret.
- Description:
Demiton Access Key. - Expires: 24 months (recommended).
- Copy the Value immediately. You will not be able to see it again.
Step 3: Add API Permissions
- Select API permissions > + Add a permission.
- Select Dynamics 365 Business Central.
- Choose Application permissions (NOT Delegated).
- Check:
API.ReadWrite.AllAutomation.ReadWrite.All
- Click Add permissions.
- Critical: Click the "Grant admin consent for [Your Org]" button.
Phase 2: Business Central Internal Configuration
This is the most critical step. You must map the Azure App to internal Business Central permissions.
- Log in to Business Central.
- Search for "Microsoft Entra Applications" (formerly Azure Active Directory Applications).
- Click + New.
- Client ID: Paste the Application (Client) ID from Azure.
- Description:
Demiton Engine. - State: Set to
Enabled.
The Permission Set Configuration (Critical)
Business Central blocks assigning the SUPER permission set to Service Apps. You must assign specific sets to allow data access.
- Scroll down to User Permission Sets.
- Add the following rows:
D365 AUTOMATION: Allows API and OData access.D365 BUS PREMIUM(orD365 BASIC): Allows read/write access to financial tables.
- Important: Leave the Company column BLANK.
- Why? If you select a specific company, Demiton cannot perform "Company Discovery" to list your available entities, and the connection will fail.
Troubleshooting: If the permission rows are greyed out, change the State field at the top to Disabled, add the rows, and then switch it back to Enabled.
- Finally, click Grant Consent in the top ribbon if prompted.
Phase 3: Enable Payment Services (Required for ABA/EFT)
To generate bank files (ABA) and read Payment Journals, you must expose the specific payment pages as OData Web Services. The standard API v2.0 does not expose the "Exported" status flag or Recipient Bank Account details required for secure payments.
- In Business Central, search for "Web Services".
- Click + New.
- Enter the following details in a new row:
- Object Type:
Page - Object ID:
256(Payment Journal) - Service Name:
PaymentJournal(Case sensitive, ensure no spaces) - Published:
Checked
- Object Type:
- Click out of the row to save.
Demiton can now safely read pending payments, verify recipient details, and update the "Exported to Payment File" status after processing.
Phase 4: Configure Demiton
- Log in to Demiton.
- Go to Connectors > Add Connector.
- Select Business Central.
- Tenant ID: Your Azure Directory ID.
- Client ID: Your App Application ID.
- Client Secret: The secret value from Phase 1.
- Environment: Typically
ProductionorSandbox.- Note: Do not enter the full URL. Demiton constructs the OData endpoints dynamically.
Click Test Connection. Demiton will scan for available companies (Legal Entities) and cache the API schema.