Latebound Constants Generator


Generate constant classes from metadata for late bound development on Microsoft Dataverse.

Latest version release notes

Latest version:

Solving issue 'XrmToolBox.PluginStore missing' - read more:

Kindly stolen code from Ivan Ficko @DynamicsNinja to count records. #89

Displays number of records for all entities (only for v9.0 or later). #89

Possibility to only show entities that have any records. #92

Can count and displays all attributes that are not-null. #90

Attributes with data count will also display how many unique values.

Filter to only show attributes with any values. #93

Filter to only show attributes with >1 unique values.

Feature to filter out all Microsoft related apps. #88 requested by @jellevervloessem
Current MS prefixes are listed as:
Need more? Please comment here!


Version 1.2023.2.1

#79 Handling bugs in the metadata, some should be `IsLogical` but isn't.
#85 Better filtering options for Attributes and Relationships


Version 1.2021.12.1

#72: Load old project with one-file-per-entity gets include config with every file (not supported)
#73: Load sometime fails for no project


Version 1.2021.1.2

Major improvement!
Configuration will now by default be stored inline in the generated C# file as a comment block in at the end of the file.
This makes the "project file" obsolete, and a generated C# file can be opened by Latebound Constants Generator and the configuration is parsed from the comment block.

Simplify Save and Generate behavior, not prompting all the time (#66)
Better handling of identifier strings to ensure compilable results (#70)
Fixed crash when opening configuration containing entities not in the database (#57)


Version 1.2020.2.1:

Hide entities, attributes and relationships grids when nothing matches filter (#47)
Disable entire Project menu when no subitems are enabled (#46)
Uncheck all attributes and relationships when unchecking an entity (#49)
Relationship type filters improved (#44)
Filter to exclude various CDS "internal" attributes (#53)
Sorting relationships by type, related entity, and lookup in the UI (#54)
Moved settings to separate dialog (#9)
Possibile to select which relationships to include
Major project refactoring to fit UDG features in a common library


Version 1.2019.12.2:

#35 Fixed primary key issue with logical attributes, thanks @maerger!
#38 Fixed de-duplication routine that was confused by comment lines
Fixed issue with Common Class when including relationships


Version 1.2019.6.2:

#30 Enum texts containing [ or ] now created correctly. Thanks to @DerekHAu!
#33 Add option to include logical attributes
This will make "non-real" attributes like owneridname and address fields on contact and account etc available.


Version 1.2019.5.2:

#22 Many-to-Many relationships included
#26 EntityCollectionName included
#27 CLI support for build automation
#29 Exposing file template for customization of generated file
Rebranded with 2019 design

* NOTE! #26 introduces a breaking change where constant EntityName is changed to LogicalName. This can be reverted with the introduction of #29.


Version 1.2018.9.2:

#16 Generate constants for relationships
#21 Option to create separate common class for attributes used by multiple entities
#19 Improved CamelCasing
#24 Add XML documentation for relationship constants
#25 Gently forgive file write errors instead of throwing exception
Template line break bug fixed


Version Release date Number of downloads Rating
1.2023.12.1 12/31/2023 11:47:42 AM 2232 0.00
1.2023.2.1 2/2/2023 8:39:47 PM 4929 0.00
1.2021.12.1 12/15/2021 5:27:01 PM 9586 0.00
1.2021.1.2 1/15/2021 2:09:02 PM 9331 5.00
1.2021.1.1 1/14/2021 11:13:25 PM 0 0.00
Show more versions (15 more)


Latest version

No feedback yet. Add yours

Other versions

Marc Scheuner () - version 1.2021.1.2
Excellent stuff - again! - from Jonas Rapp. Extremely useful and helpful - saves me tons of time of searching for and jotting down the option set values for various picklists....... GREAT STUFF!
Roman Mellenberger () - version 1.2018.9.2
Nice one - there was some confusion saving and loading configuration. May be my mistake...

Related information

Author: Jonas Rapp Latest version: 1.2023.12.1 Released on: 12/31/2023 Nuget package Id: Rappen.XrmToolBox.LateboundConstantsGenerator Open Source: true Go to project web site Ratings (all versions) 5Average rating 2Number of ratings Downloads 2232Latest version 128012All versions 6400.60Average per version Tags Development