Before connecting Alvys to Microsoft Dynamics 365 Business Central (also called BC, Microsoft BC, or BC setup), you must configure seven areas in your BC environment: company architecture, licensing and permissions, chart of accounts, posting groups, tax setup, journal batch configuration, and IRS 1099 setup (if applicable). Completing these steps in order ensures transactions sync accurately and prevents errors after the integration goes live.
Overview
Before you connect Alvys to Business Central, your BC environment must be configured (prepared) to receive and post data from Alvys. This article walks through seven prerequisite areas. Skipping or partially completing any of these areas can cause sync failures, “Out of Balance” invoice errors, or record-locking issues after the integration is active.Before You Start
Required role: Configuring the accounting integration in Alvys requires the “CompanyProfileManager” permission, available to users with the Admin, Partner Admin, or Support role. Prerequisites before beginning:- You have administrator or equivalent setup access in your Business Central environment.
- You have determined your organizational structure: whether each Alvys subsidiary maps to a separate BC company (Option A) or whether you are using the Binary Stream Multi-Entity Management (MEM) add-on with multiple legal entities sharing one BC database (Option B).
- The integration user account in BC has been created and is available for permission assignment.
- You are not yet live on the Alvys integration. Changing company architecture after the integration is active carries significant data reconciliation risk.
Steps
- Company Setup and Architecture.
- In the BC search bar, type Companies and select the link.
- Select New > Create New Company.
- Search for Multi-Entity Management Setup and confirm it is enabled.
- Search for MEM Entity Setup and add each subsidiary as a new line.
- Assign a Global Dimension (typically Dimension 1) to represent your entities.
- Search for MEM User Security Setup and assign the User ID to every entity code that Alvys will use. For more information on the MEM extension, see: Multi-Entity Management Overview (Binary Stream) During Alvys integration setup with MEM: enable the Subsidiary checkbox, then manually link each Alvys subsidiary to the specific MEM Entity Code defined in BC.
- Licensing and Permissions.
- “D365 BUS FULL ACCESS”: the primary set for full read/write/modify access to business data.
- “D365 AUTOMATION”: required for allowing external API calls from Alvys to execute tasks in the background.
- “LOCAL”: provides regional-specific database access required for posting logic.
- “LOGIN”: the base set required to access the BC environment. Configuration steps:
- In BC, search for Users and select the integration user.
- Scroll to the User Permission Sets tab.
- Add all four permission sets listed above.
- Ensure the Company column is left blank so the permissions apply to all companies and entities.
- Chart of Accounts. Alvys requires active General Ledger (G/L) accounts in BC to post revenue and expenses. These accounts must exist and be configured for direct posting before the first sync.
- In BC, search for Chart of Accounts.
- Select New to create accounts for Freight Revenue and Carrier Expense.
- Set Income/Balance to Income Statement for revenue and expense accounts.
- Ensure Direct Posting is toggled on so the API can post to these accounts.
- Posting Groups. Posting groups are rules assigned to each customer or vendor that tell Business Central which account category to use when a transaction is posted. Even when Alvys sends a specific account, BC checks the posting group to confirm the transaction is valid. Configure posting groups for your customers and vendors before connecting the integration. For more information, see: Setting Up Posting Groups
- Tax Setup. Business Central calculates tax for the data sent by Alvys. Tax must be configured in BC before connecting; missing or incomplete tax configuration causes “Out of Balance” errors on invoices.
- Search for Tax Groups and create a code (for example, TAXABLE).
- Search for Tax Areas and define the regions where you operate.
- Link the Tax Group and Tax Area to your Customer and Vendor cards under the Invoicing tab.
- Journal Batch Setup. BC includes a native DEFAULT batch for general journals. Creating a dedicated ALVYS batch is strongly recommended, though not strictly required. A dedicated batch prevents record-locking conflicts with manual users and ensures clear traceability for all automated transactions posted by Alvys.
- Search for General Journal Batches.
- Select New and name the batch ALVYS.
- Ensure a No. Series is assigned so BC can auto-generate document numbers.
- Confirm the integration user account has explicit permission to post within this specific journal batch.
- IRS 1099 Setup (US companies only). This step applies only to US companies that work with carriers subject to IRS 1099 reporting. If this does not apply to your organization, skip this step.
- Search for 1099 Form Boxes and ensure codes such as NEC-01 are active.
- Open the Vendor Card for the applicable carrier and navigate to the Payments tab.
- Select the correct code in the IRS 1099 Code field.
Result
After completing all applicable steps, your Business Central environment is ready to connect to Alvys. You will have:- A confirmed company architecture (separate companies or MEM) with subsidiaries configured.
- An integration user with the correct license and all four permission sets assigned.
- G/L accounts active and set to allow direct posting.
- Posting groups configured for your customers and vendors.
- Tax Groups and Tax Areas defined and linked to customer and vendor cards.
- A dedicated ALVYS journal batch (recommended) with a No. Series assigned.
- IRS 1099 codes configured on vendor cards (if applicable).