Skip to content

Latest commit

 

History

History
107 lines (70 loc) · 7.85 KB

admin-how-to-couple-and-synchronize-records-manually.md

File metadata and controls

107 lines (70 loc) · 7.85 KB
title description author ms.author ms.reviewer ms.topic ms.date ms.custom ms.search.keywords ms.search.form ms.service
Coupling and Synchronizing
Synchronizing an integration table mapping enables data syncing in all records in a table in Business Central and Dynamics 365 Sales table that are coupled.
brentholtorf
bholtorf
bholtorf
conceptual
03/31/2023
bap-template
crm, sales, couple, decouple, synchronize
6250,
dynamics-365-business-central

Couple and Synchronize Records between Dataverse and Business Central

This topic describes how to couple one or more records in [!INCLUDEprod_short] with records in Dataverse or [!INCLUDEcrm_md]. Coupling records lets you view Dataverse information from [!INCLUDEprod_short], and vice versa. The coupling also enables you to synchronize data between the records. You can couple existing records, or create and couple new records.

Note

Coupling and synchronizing data is available only if your system administrator has created a connection between [!INCLUDEprod_short] and Dataverse or [!INCLUDEcrm_md]. A quick way to check is to open the Customer card and look for the Set Up Coupling action. If the action is available, the apps are connected.

Video Example

This video shows coupling and synchronizing data in the context of an integration with [!INCLUDEcrm_md].

[!VIDEO https://go.microsoft.com/fwlink/?linkid=2098376]

To couple a record

  1. In [!INCLUDEprod_short], open the card for the record you want to couple. For example, the Customer or Contact card.

    You can also just open the list page and select the record that you want to couple.

  2. Choose the Set Up Coupling action.

  3. Fill in the fields, and then choose OK.

To synchronize a single record

  1. In [!INCLUDEprod_short], open the card for the record you want to couple. For example, the Customer or Contact card.
  2. Choose the Synchronize Now action.
  3. If a record can be synchronized in one direction, select the option that specifies the direction of data update, and then choose OK.

To synchronize a single record from [!INCLUDEcrm_md]

  1. In [!INCLUDEcrm_md], open the form for the record you want to couple. For example, the Account card or Contact card form.

  2. Choose the [!INCLUDEprod_short] action in the ribbon to open and couple record automatically.

    [!Note] You can synchronize a single record from [!INCLUDEcrm_md] automatically only when Sync. Only Coupled Records is disabled and the synchronization direction is set to Bidirectional or From Integration Table on the Integration Table Mapping page for the record. For more information, see Mapping the Tables and Fields to Synchronize.

To couple multiple records using match-based coupling

Specify the data to synchronize for an entity, such as a customer or contact, by coupling records based on matches. Refine the matches by making the search case sensitive, and assigning a priority for each match. If no match is found, you can also specify that you want to create the entity in Dataverse. For more information, go to Customize the match-based coupling.

Note

The match-based coupling process skips records that are already matched. To include those records when you run match-based coupling, uncouple the records and then try again. To learn more about uncoupling records, go to Uncoupling Records.

  1. In [!INCLUDEprod_short], open the list page for the record, such as the Customers or Contacts list pages.
  2. Choose the Match-Based Coupling action.
  3. Fill in the fields as necessary. [!INCLUDEtooltip-inline-tip]

To synchronize multiple records

  1. In [!INCLUDEprod_short], open the list page for the record, such as the Customers or Contacts pages.
  2. Select the records that you want to synchronize, and then choose the Synchronize Now action.
  3. If records can be synchronized in one direction, select the option that specifies the direction, and then choose OK.

Bulk-insert and couple records

If you have a large number of Dataverse entities that correspond to records in [!INCLUDE prod_short], you can insert and couple them in-bulk. For example, you might want to bulk-insert and couple records when you're setting up synchronization for the first time.

You'll use the Data import wizard in the Microsoft Power Platform admin center.

The following example describes how to bulk-insert and couple customers with accounts in Dataverse. Use the same process for other types of entities, such as vendors, items, and resources.

  1. Choose the Lightbulb that opens the Tell Me feature. icon, enter Customers, and then choose the related link.

  2. Choose the Open in Excel action to open customer data in Excel.

  3. To map and import data to the Account entity in Dataverse, follow the steps described in Import data (all record types) from multiple sources.

    If the Account entity has a bcbi_companyid column, when you map the data columns make sure that the import assigns the appropriate company ID in the column for every imported record. To find the company ID in [!INCLUDE prod_short], follow these steps:

    1. Open the Integration Table Mappings page.
    2. Choose the CUSTOMER mapping, and then choose Edit List.
    3. Scroll to the right, and choose the assist edit :::image type="icon" source="media/assist-edit-icon.png" border="false"::: button in the Integration Table Filter field. This shows the default filter for customer mapping, and it contains the company ID. The company ID is the first part of the value. Copy only that part, and disregard the 0s. The following example highlights the part to copy.

    :::image type="content" source="media/dataverse-company-id-guid.png" alt-text="Shows the part of the company ID to copy.":::

    [!NOTE] Not all of the names of Dataverse entities and Business Central records match. Depending on what you're importing, double-check that the following columns have the following values after you import:

    • For customers, the CustomerTypeCode column should contain Customer.
    • For vendors, the CustomerTypeCode column should contain Vendors.
    • For items, ProductTypeCode column should contain Sales Inventory.
    • For resources, the ProductTypeCode column should contain Service.
  4. After you import data to the Dataverse environment, in [!INCLUDE prod_short], follow the steps To couple multiple records using match-based coupling to couple the Dataverse entities with [!INCLUDE prod_short] records.

Uncoupling Records

You can uncouple one or more records from list pages or the Coupled Data Synchronization Errors page by choosing one or more lines and choosing Delete Coupling. You can also remove all couplings for one or more table mappings on the Integration Table Mappings page.

See Also

Use Dynamics 365 Sales from Business Central

[!INCLUDEfooter-include]