Share This Post

Business Central

Dynamics 365 Sales for Customer Engagement

If you use Dynamics 365 Sales for customer engagement, you can use Business Central for order processing and finances and have seamless integration in the lead-to-cash process.

When your application is set up to integrate with Dynamics 365 Sales, you have access to Sales data from Business Central and the other way around in some cases. This integration enables you to work with and synchronize data types that are common to both services, such as customers, contacts, and sales data, and keep the data up to date in both locations.

For example, the salesperson in Dynamics 365 Sales can use the price lists from Business Central when they create a sales order. When they add the item to the sales order line in Dynamics 365 Sales, they are also able to see the inventory level (availability) of the item from Business Central.

Conversely, order processors in Business Central can handle the special characteristics of sales orders transferred automatically or manually from Dynamics 365 Sales, such as automatically create and post valid sales order lines for items or resources that were entered in the Sales as write-in products.

Standard Sales Entity Mapping for Synchronization

Sales entities, such as accounts, are integrated with the equivalent Business Central record types, such as customers. To work with Sales data, you set up mappings, called couplings, between Business Central records and Dynamics 365 Sales entity records. For example, you set up the coupling between a specific customer in Business Central and a corresponding account in Sales.

The below table lists the Business Central record types (tables) and corresponding Sales entities that can be synchronized out-of-the-box.

Business Central Sales Synchronization Direction Default Filter
Salesperson/Purchaser User Sales -> Business Central  Sales contact filter: Status is No, User Licensed is Yes,  The Integration user mode is No
Customer Account Business Central -> Sales and Sales -> Business Central  Sales account filter: Relationship Type is the Customer and Status is Active.
Contact Contact Business Central -> Sales and Sales -> Business Central  Business Central contact filter: Type is Person and contact is assigned to a company. Sales contact filter: The contact is  assigned to the  company and the parent customer type is Account
Currency Transaction Currency Business Central -> Sales
Unit of Measure Unit Group Business Central -> Sales
Item Product Business Central -> Sales and Sales -> Business Central  Sales contact filter: Product Type is the Sales Inventory
Resource Product Business Central -> Sales and Sales -> Business Central  Sales contact filter: Product Type is the Services
Customer Price Group Price List Business Central -> Sales
Sales Price Product Price List Business Central -> Sales  Business Central contact filter: Sales Code is not blank, Sales  Type is Customer Price Group
Opportunity Opportunity Business Central -> Sales and Sales -> Business Central
Sales Invoice Header Invoice Business Central -> Sales
Sales Invoice Line Invoice Product Business Central -> Sales

The Sales entities and the Business Central tables that are synchronized are defined by table mapping entries in table 5335, Integration Table Mapping. You can see the mappings and set up filters from page 5335, Integration Table Mappings. The mapping between the fields in the Business Central records and the fields in Sales entities are defined by field mapping entries in table 5336, Integration Field Mapping, and with additional mapping logic.

Field Mapping for the Sales Account Option

Three tables in the Business Central are mapped to the option fields optional Account entity.

The records in the table that are not linked to the options that exist in Dynamics 365 Sales will be skipped during synchronization. This means that the Options field will be blank in Sales.

The following table shows mappings from Business Central tables for the Options field in the Account entity.

Table  Option Field in the Account Entity in Sales
Payment Terms  Payment Terms
Shipment Method  Address 1: Freight Terms
Shipping Agent  Address 1: Shipping Method

Synchronization Rules

The below table describes rules that control the synchronization between Business Central tables and Sales entities.

Table Rule
Customers Before the customer can be synchronized to an account, the salesperson that is assigned to the customer must be coupled to a user in Sales. Therefore, when you run the CUSTOMERS – Dynamics 365 Sales synchronization job and you set it up to create new records, make sure that you synchronize salespeople with Sales users before you synchronize customers with Sales accounts.

The CUSTOMERS – Dynamics 365 for the Sales synchronization job only synchronizes Sales accounts that have the relationship type Customer.

Contacts Only contacts in the Sales that are associated with an account will be created in Business Central. The Salesperson Code value defines the owner of the coupled entity in the Sales.
Currencies Currencies are coupled to transaction currencies in the Sales based on ISO codes. Only the currencies that have a standard ISO code will be coupled and synchronized with transaction currencies.
Units of Measure Units of measure are synchronized with unit groups in Dynamics 365 Sales. There can only be one unit of measure defined in a unit group.
Items When synchronizing items with the Sales products, Business Central automatically creates a price list in Sales. To avoid the synchronization errors, you should not modify this price list manually.
Salespersons Salespersons are coupled to system users in the Sales. The user must be enabled and licensed and must not be Integration user. Note, that this is the first table that must be synchronized because it is used in the customers, contacts, opportunities, and sales invoices.
Resources Resources are the synchronized with Sales products that have product type Service.
Customer Price Groups Customer price groups are synchronized with Dynamics 365 Sales price lists.
Sales Prices Sales prices that have the sales type Customer Price Group and have a sales code defined are synchronized with Sales price list lines
Opportunities Opportunities are synchronized with Sales opportunities. The Salesperson Code value defines the owner of the coupled entity in the Sales.
Posted Sales Invoices Posted sales invoices are synchronized with the sales invoices. Before the invoice can be synchronized, it is better to synchronize all other entities that can participate in the invoice, from salespersons to price lists. The Salesperson Code value in an invoice header defines the owner of the coupled entity in Sales.

Setting Up the Connection

From Home, you can access Microsoft Dynamics 365 Connection Setup assisted setup guide that helps you set up the connection. Once that is done, you will have a seamless coupling of Dynamics 365 Sales records with Business Central records.

In the assisted setup guide, you can select which data to synchronize between the two services. You can also mention that you want to import your existing Sales solution. In that case, you must mention an administrative user account.

Setting Up a User Account for Importing the Solution

To import an existing Dynamics 365 Sales solution, the setup guide uses an administrative account. This account must be a valid user in the Sales with the following security roles:

  • System Administrator
  • Solution Customizer

This account is only used during the setup. Once the solution is imported into the Business Central, the account is no longer needed.

Setting Up the User Account for Synchronization

The integration relies on a shared user account. So in your Office 365 subscription, you must create the dedicated user that will be used for synchronization between the two services. This account must already be a valid user in Sales, but you do not have to assign security roles to the account because the setup guide will do that for you. You must mention this user account one or more times in the setup guide, depending on how much synchronization you want to enable.

If you select to enable item availability, the integration user account must have a web services access key. This is a two-step thing in the Business Central page for that user account, you must choose the Change Web Service Key button; and in the Dynamics 365 Sales Connection setup guide, you must mention that user as the OData web service user.

If you select to enable sales order integration, you must specify a user that can handle this synchronization – the integration user or another user account.

Coupling Records

Coupling Records

Coupling Records

In the assisted setup guide, you can select to synchronize between the two services. But later, you can also set up the synchronization of specific types of data. This is referred to as coupling, and this section gives recommendations for what you must take into consideration.

For example, if you want to see the Sales accounts as customers in Business Central, you must couple the two types of records. It is not very complicated – you open the Customer List window in the Business Central, and there is an action in the ribbon to couple this data with Sales. Then you specify which Business Central customers match which accounts in Dynamics 365 Sales.

In certain areas, the functionality relies on you couple certain sets of information before other sets of data as shown in the following list:

  • Customers and accounts
    • Couple salespeople with Sales users first
  • Items and resources
    • Couple units of measure with the Sales unit groups first
  • Items and resource prices
    • Couple customer price groups with Sales prices first

In Sales, sales orders depend on additional information like customers, units of measure, currencies, customer price groups, items and/or resources. In order for the integration with the sales orders to work seamlessly, you must couple customers, units of measure, currencies, customer price groups, items and/or resources first.

Synchronizing Records Fully

At the end of the assisted setup guide, you can choose the Run Full Synchronization action to start synchronizing all Business Central records with all related records in the connected Sales solution. In the CRM Full Synch. Review window, you choose the Start action. The synchronization then begins to execute the jobs according to dependencies. For example, the currency records are synchronized before customer records. The full synchronization may take a long time and will, therefore, run in the background so that you can continue to work in the Business Central.

To check the progress of individual jobs in the full synchronization, drill down on the Job Queue Entry Status, To Int. Table Job Status, or From Int. Table Job Status field in CRM Full Synch. Review window.

From the Microsoft Dynamics 365 Connection Setup window, you can get the details about full synchronization at any time. From here, you can also open the Integration Table Mappings window to view the details about the tables in Business Central and in the Sales solution that must be synchronized.

Handling Special Sales Order Data

Sales orders in the Sales will be transferred to Business Central automatically if you select the Automatically Create Sales Orders check box in the Microsoft Dynamics 365 Connection Setup window. On such sales orders, Name field on the original order is transferred and mapped to the External Document Number field on the sales order in Business Central.

This can also work if the original sales order contains the write-in products, meaning items or resources that are not registered in either product. In that case, you must fill the Write-in Product Type and Write-in Product No. fields in the Sales & Receivables Setup window, so that such non-registered product sales are mapped to the specified item/resource number for financial analysis.

If an item description on the original sales order is very long, then an additional sales order line of type Comment is created to hold the full text on the sales order in Business Central.

Share This Post

Leave a Reply

Notify of
Skip to toolbar