web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Integration Table Mapping Inquiry

(5) ShareShare
ReportReport
Posted on by 30
Hello,
 
I was hoping to get some clarification on this particular subject as we've been attempting to see what we can customize to bring over more CRM field data into our BC environment. As for quick reference, as I'm sure there will be questions of our setup:

CRM Environment: Latest version, cloud-based, D365 Customer Service Hub (this appears to behave the same as the D365 Sales Hub in terms of connectivity)
BC Environment: Latest version, cloud-based, some AL extensions to the Invoice Report Layout selection process and Line-Item Tracking to Sales Order Confirmation process, nothing major that would alter the OOB processes completely
 
My colleague and I have been attempting to pull over the Owner from a Quote (I have tested this in Sales Hub from Order as well) into the converted BC Quote that resides in the Sales Quotes - Microsoft Dynamics 365 Sales conversion queue that populates the Salesperson Code field within the BC Quote. OOB this already seems to be mapped with the Legacy Sales Order Integration Enabled boolean setting within the Dynamics 365 Sales Integration Setup settings.
Which if we look at our Int. Table Mapping, we see this:
 
We have made copies of the environment to attempt to blow away this OOB mapping and try Custom Mapping, however, we find that most fields just error out because they are "already associated with another table and cannot be associated again" which begs to question why we can even customize mapping when most of the fields can't even be re-mapped. But that's another concern for another time. It seems that even with the newer Bidirectional Sales Order Integration, you still cannot bring over certain fields we want into BC from CRM, based on these SALESORDER-ORDER Int. Table Mappings. Whether through the CS Hub or Sales Hub, Quote or Order, it doesn't seem to work. It's almost as if there's something in-between that isn't there that needs to be.
 
For the next round of questions, I'm sure some will ask what we have coupled/sync'd, please see below for the respective tables:
 
BC / CRM
 
Customers > Accounts
Items > Products
Unit of Measure > Unit Groups
Salespeople > Users
Users > AAD Users (pushed down through CRM via Entra)
Serial Numbers > Serial Numbers (custom table in both)
Entitlements > Entitlements (custom table in BC, OOB Entitlements for CRM)

The only thing I can think of is that this conversion process is part of the coupling of environments themselves and has almost nothing to do with the Int. Table Mappings, or so it appears. The reason I mention this is when we had Legacy Sales Order Integration enabled in a copy of one of our environments, we blew away the SALESORDER-ORDER mapping all together, and didn't replace it. We were still able to pull over CRM Quotes/Orders into BC Quotes/Orders. Is this normal functionality?
 
I'd imagine if you don't have the Int. Table Mapping that BC wouldn't know which fields to bring over, which leads me to believe there's something else going on here. I don't believe it's being interfered with on an AL code level by customizations through extensions because we haven't built anything along those lines, and we do have a 3rd party which has built a few of the extensions for the Invoice table mentioned above. I have already taken the liberty of sitting down and going through any extensions they've done and confirming this doesn't (or shouldn't) affect this process I'm describing. If anyone could help clarify perhaps what it is we're missing that is causing the Int. Table Mapping to seemingly be ignored, it would be greatly appreciated. Please let me know if you have further questions, I will attempt to answer them as best I can.
 
Thank you,
I have the same question (0)
  • Suggested answer
    Holly Huffman Profile Picture
    6,530 Super User 2025 Season 2 on at
    Hi there! Good morning, evening, or afternoon - depending on where you are :) Hope you are well today!
     
    Your inquiry touches on several aspects of Dynamics 365 Sales and Business Central integration, particularly around table mappings and field synchronization.
     
    Key Observations from your post -
    1. Legacy Sales Order Integration:
      • The Legacy Sales Order Integration setting enables predefined mappings for certain fields, such as the Owner field being mapped to the Salesperson Code in BC. This is expected behavior for out-of-the-box (OOB) functionality.
    2. Custom Mapping Limitations:
      • The error message about fields being "already associated with another table" indicates that OOB mappings are locked and cannot be overridden. This is a known limitation in Dynamics 365 integration setups.
    3. Bidirectional Sales Order Integration:
      • The newer Bidirectional Sales Order Integration allows synchronization of sales orders between BC and CRM in both directions. However, it still relies on predefined mappings and does not provide full flexibility for custom field mappings.
    4. Coupling of Environments:
      • The ability to pull CRM Quotes/Orders into BC Quotes/Orders without the SALESORDER-ORDER mapping suggests that the integration relies on broader coupling mechanisms, such as Dataverse or other backend processes, rather than solely on table mappings.
    Possible Explanations
    1. Dataverse Integration:
      • If Dataverse is being used as the intermediary, it may handle field synchronization independently of the Integration Table Mappings. This could explain why the mappings appear to be ignored.
    2. Default Synchronization Settings:
      • When Legacy Sales Order Integration is enabled, default synchronization settings are applied, which may bypass custom mappings.
    3. Field Mapping Constraints:
      • Certain fields are hardcoded for specific purposes in the integration setup, making them unavailable for remapping.
    Recommendations
    1. Review Dataverse Settings:
      • Check if Dataverse is being used for integration and review its synchronization settings.
    2. Enable Bidirectional Integration:
      • If not already enabled, consider using Bidirectional Sales Order Integration for more flexibility in synchronizing sales orders.
    3. Custom Extensions:
      • If specific fields need to be mapped, consider developing custom AL extensions to handle the synchronization outside of the standard integration setup.
     
    Hope this helps some!
  • NA-27031233-0 Profile Picture
    30 on at
    Hello Holly,
     
    Thank you for your reply. We did try it with the new Bidirectional Integration Mapping as well, with and without the Unit Group Mapping setting and it didn't seem to matter much. I believe the Dataverse connection is more than likely the culprit. However, I used the Assisted Setup "Create a Dataverse Connection" connection within my environment. I have been looking for any Microsoft.Learn documentation on this particular subject on how to change the "connection settings" within the Dataverse environment but have only come up with initial setup guides or information about parts of it. Is there a "here's how to alter your connection settings" Learn doc that I'm just not seeing? If you have any knowledge or links to the subject, it would be greatly appreciated.
     
    This would also help explain why when we deleted the SALESORDER-ORDER mapping all-together and never replaced it that it was still able to convert Quotes/Orders from CRM to BC. So, my initial assessment of it being the "environment" was almost correct, but it seems likely to be the intermediary table in between: the Dataverse.
     
    Thank you for your suggestions, I will continue to investigate this matter with the new information on hand.
  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at
    I am not sure, is it possible that the record is deleted but the Job Queue is still there? So the synchronization is still running?
     
    Thanks
    ZHU
  • Gerardo Rentería García Profile Picture
    25,154 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    View the Status of Synchronization Jobs - Business Central | Microsoft Learn

    Best Regards
    Gerardo

  • NA-27031233-0 Profile Picture
    30 on at
    Hello All,
     
    To clarify, I believe Holly was on the right path. This doesn't have anything to do with Job Queue Entry Jobs or Syncronization Jobs. This is in regards to Integration Table Mapping. I am trying to find a way to understand how CRM and BC are interacting with each other when a Quote/Order is Activated in CRM and converted into a BC Quote/Order within BC in the Sales Quotes - Microsoft Dynamics 365 Sales queue. I've checked Power Apps and the Power Admin Platform for these "Dataverse connection settings" regarding BC, but I've found none. And I've also looking into the BC side to see if changing any of the settings there will change how the environment behaves, and it does not seem to alter the functionality. I will continue looking to find an answer, but it seems there's not much information out there on how to do this.
     
    Thank you
  • NA-27031233-0 Profile Picture
    30 on at
    Hello All,
     
    Just wanted to drop in and state this issue has been partially resolved. I have found the Dataverse Connection Setup page finally within the Business Central environment. My colleague and I have definitely gotten some forward progress regarding this matter. For those who are interested, it seems that when you have the Dynamics 365 Sales Connection Setup enabled, it overrides (or it appears to) the Dataverse Connection Setup customizations. It still uses the URL/Team Ownership/Owner + User Permission Sets for connectivity. However, we weren't able to enable Virtual Tables until we turned off the D365 Sales Connection Setup. Once turned off we were able to use our custom API's to push down our Virtual Tables into the Power Apps platform in our environment's Dataverse database.

    This is the farthest progress we've gotten so far. Right now we're attempting to setup connections through the Synthetic Relations table under the Virtual Tables tab.

     
    This is proving to be difficult, but we'll find our answer on how to set these up properly for our custom Virtual Tables we've made Visible within the Available Virtual Tables table.

     
    However, the only downside seems to be that we are unable to use the OOB Business Central Statistics Job within the Job Queue Entry jobs because this requires the D365 Sales Connection Setup to be enabled. We're not entirely sure if we need to set up the Dataverse connection entirely before we enable the Sales connection or if we need to choose one or the other for our custom mapping to work properly. I hope some of this information was helpful for those who might be struggling to do the same.

    Here are the Microsoft Learn documentation that I did find that helped quite a bit when it came to permission sets for the Team/Person Ownership, as well as the setup for the Dataverse connection. I will recommend using ChatGPT or Copilot to help edge out some of the setup steps as unfortunately Microsoft Learn documentation does leave out key steps sometimes regarding specific information. However, this is most likely due to the specific steps being variable depending on your environment setup and what your company's needs are.

    We used this article for the permission sets, if you're using D365 Sales Connection, this will help with that.
    Integrating with Dynamics 365 Sales - Business Central | Microsoft Learn

    If you're looking to not use the Default Synchronization Setup and the D365 Sales Connection, this should help with the Dataverse Connection Setup.
    Integrate with Microsoft Dataverse via data sync - Business Central | Microsoft Learn

    I will keep this thread open a little longer in case we find any information on this setup process, or perhaps to add on how we setup our Synthetic Relations table to pull in CRM Tables for custom mapping or data synchronization.

    Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans