Sample Code for Autonumbering in Dynamics 365 July 2017 Update – Nishant Rana’s Weblog
As a first step, add references to the latest version 9 assemblies
https://www.nuget.org/packages/Microsoft.CrmSdk.CoreAssemblies/
In the below sample code, we are creating an Auto number attribute in Contact Entity.
This is how the fields shows up inside contact form.
Using UpdateAttribute Request we can update the format for the AutoNumber field.
And also, we can have multiple auto number fields for an entity as shown below.
Sample Code
CreateAttributeRequest createAttributeRequest...
Full Article
Sample Code for Autonumbering in Dynamics 365 July 2017 Update – Nishant Rana’s Weblog
Blog Syndicated with Nishant Rana’s Permission
More About This Author
Array
- Dyn365CE18 September 2024Use OptionSet Wrapper component to show color-coded options on the form – Model-driven apps/ Dynamics 365
- Dyn365CE17 September 2024New Lead Qualification Experience – Dynamics 365 Sales
- Dyn365CE16 September 2024Bypass Power Automate Flows using SuppressCallbackRegistrationExpanderJob optional parameter – Dataverse / Dynamics 365
- Dyn365CE10 September 2024Sample Code to create and associate Folder / SharePoint Document Location (Dataverse /Dynamics 365 / SharePoint Online)