Search code examples
dynamics-crmcrmmicrosoft-dynamicsdynamics-365dynamics-crm-365

Generating unique IDs for new records and existing records


I'm basically trying to create a primary ID between CRM and QuickBooks. Figured I'd just use the existing PK in CRM for the lookup. I'd like the PK to visible to the user, but not editable in CRM.

This has presented several problems in that you can't do that out of the box. I thought I read somewhere you could either via business rule or calculated field, but I haven't had luck with that.

It sounds like it would require web resources if I were to go this route.

The other option would be to just generate unique values for every record in Accounts and Contacts.

Does this automatically populate existing records or just new records? How do I get it to populate existing records?


Solution

  • You can use Auto number manager for configuring an auto-number attribute in every entity. This seeds a number based on configured format for new records. Uniqueness assured by SQL sequence feature & no need of any extra plugin/workflow.

    For existing records - you can design a workflow along with a temp entity to assign auto-number. Read more.

    Otherwise you can use SSIS + Kingswaysoft package to generate auto-number & assign for existing records.