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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Business Central - CRM Sync Customer account No.

(5) ShareShare
ReportReport
Posted on by 19

I am using the native Business Central/CRM Integration Tool.

We have a process where we create new customer accounts in CRM (dataverse) and sync this data down to Business Central which creates a new customer record. I want to map the Customer No. field from Business Central back up to CRM. This field mapping is not part of the default mapping.

I have created some code to add the field mapping into the customer table mapping.

pastedimage1670932148037v1.png

The integration table mapping is setup as Bidirectional as I want to pass information both ways. My problem is that when the job queue runs this runs the job from BC->CRM first then CRM-BC, which means that nothing is sent to CRM, but then the account is then synced down to BC fine.

pastedimage1670932217399v2.png

Any further runs of the job do not send the account number back up to CRM. Currently the only ways I can get the number synced to CRM is to either modify the BC customer record, or to perform manual customer record sync form BC. neither of these are a long term solution.

Any help would be much appreciated.

I have the same question (0)
  • DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at

    hi

    look this

    learn.microsoft.com/.../admin-prepare-dynamics-365-for-sales-for-integration

    DAniele

  • James I Profile Picture
    19 on at

    I have had a look through and cannot see anything targetted towards my question. Is there anything specific in the link that relates? Thanks

  • Amit Profile Picture
    2,561 on at
  • James I Profile Picture
    19 on at

    I think the issue I am facing is that sync works ok coming from CRM to BC in the first instance to create the record. This then sets the created date\time and modified data\time to be the same date\time. I believe I need the modified date to be adjusted after insert, so that this differs from the creation date\time. Any suggestions?

  • Verified answer
    Manan_Shah Profile Picture
    1,461 on at

    Hi James,

    I suggest you can create a separate Integration for it. 

    1) Create Customer Record in Business Central from CRM. -> FromDirectional. 

    2) Updated record on Business Central transfer to CRM -> Todirectional.  

    With 2 different Job Queue you can manage it.

    Hope this will help.

    Many Thanks,
    Manan

  • Suggested answer
    Greg Enns Profile Picture
    1,122 on at

    I'm doubtful that the dual mapping jobs would work without a LOT of customization.

    I would first recommend trying the following:

    1. Create a custom subscriber function to Customer.OnAfterInsert
    2. Check and see if the record is coupled to a CRM Account.
    3. If it is coupled, then do the following code:
      1. CRMAccount."Account No." := Customer."No.";
      2. CRMAccount.Modify;

    This may cause the integration to run again, but I don't think it will throw an error. If it doesn't work, there are a number of other publisher functions you could try subscribing to later in the sync process to try and get it to work.

    Another potential solution would be this:

    1. Create a custom boolean field on the Customer record called "PushedToCRM".
    2. Have a separate job queue that would run occasionally (daily? Hourly?) that would mark this field--thus triggering a push to CRM.
  • Community member Profile Picture
    4 on at
    Empowering everyday users to build custom applications without needing a Ph.D. in coding feels like a game-changer.
  • SamikK Profile Picture
    84 on at
    If you don’t want to keep fighting the job queue order/change tracking rules, another approach we used was treating Customer No as a derived value and writing it back via a small post-sync step (Dataverse update) once BC has assigned it. Tools like Skyvia can do that kind of targeted read from BC - update Dataverse step reliably on a schedule, but the native integration can still work if you trigger that first outbound update right after the BC record is created.
  • Suggested answer
    Shawn Larson Profile Picture
    4 on at
    I use a simple Power Automate flow triggered on create of a Business Central customer record. The flow then updates the Business Central record with it's own display name value to trigger the integration to push the data back to Dataverse. Not ideal that MS doesn't cause this update automatically but the flow gets the job done.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,032 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,049 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,029 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans