Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I have different combinations of values of 2 fields(OEM,Subgrp). For each combination, I want ID in Autoincrement mode. So each combination will start with 001. And then increment based on same condition. How this can be achieved?
For ex. screenshot shown in excel:
You should write plugin on pre operation on create message. In plugin code check existing record auto number value order by modified on desc to take latest record. And increase the vaue by 1.
You need to make sure to implement locking mechanism to not create duplicate auto number.
see below article on how to implement lock in plugin
Have you tried Celedon Autonumber solution? it provides options to generate condition based autonumber.
Let me know if you need more help.
Are you using D365 online or OP.
For D365 online, we could use power automate to do it, which is no code way.
I'm new to this.. Can you please give me any link which helps to write plugin.
Does this solution supports condition based on combination of field values?
Column1 Column2 IDField
A B 001
A C 001
A B 002
B C 001
Hi Lu Hao,
I tried this solution. It is not showing product entity.
To implement lock check below article.
Basic plugin code is already available under SDK folder SDK\SampleCode\CS\Plug-ins
Check AccountNumberPlugin sample code under plug-ins folder in SDK
Download SKD Link - www.microsoft.com/.../details.aspx
If you are going to specify the both the Column values in a transactional form and system should generate the next sequence # for that unique combo, then plugin is the best option. You need to maintain a setup entity which contains (column1 lookup, column2 lookup, autonumber length, next number, prefix, suffix, etc.). Plugin should execute synchronous on target record create.
Flow is also an alternative if you are using CRM online, but it executes Asynchronously, and Users might not prefer it for such solution.
Business Applications communities