pac modelbuilder
Code Generator for Dataverse APIs and Tables
Commands
Command | Description |
---|---|
pac modelbuilder build | Builds a code model for Dataverse APIs and Tables |
pac modelbuilder build
Builds a code model for Dataverse APIs and Tables
Optional Parameters
--emitfieldsclasses
-efc
Generate a constants structure that contains all of the field names by entity at the time of code generation.
This parameter requires no value. It is a switch.
--entitynamesfilter
-enf
Filters the list of entities are retrieved when reading data from Dataverse. Passed in as a semicolon separated list. Using the form <entitylogicalname>;<entitylogicalname>
--entitytypesfolder
-etf
Folder name that will contain entities. default is Entities
--generateActions
-a
When set, Emits message classes as part of code generation.
This parameter requires no value. It is a switch.
--generateGlobalOptionSets
-go
Emit all Global OptionSets, note: if an entity contains a reference to a global optionset, it will be emitted even if this switch is not present.
--language
-l
The language to use for the generated proxy code. This can be either 'CS' or 'VB'. The default language is 'CS'.
--messagenamesfilter
-mnf
Filters the list of messages that are retrieved when reading data from Dataverse. Passed in as a semicolon separated list, required messages ( Create, Update, Delete, Retrieve, RetrieveMultiple, Associate and Disassociate) are always included. An * can be used to proceed or trail an message allowing for all messages starting with or ending with a string. Using the form <messagename>;<messagename>
--messagestypesfolder
-mtf
Folder name that will contain messages. default is Messages
--namespace
-n
The namespace for the generated code. The default namespace is the global namespace.
--optionsetstypesfolder
-otf
Folder name that will contain option sets. default is OptionSets
--outdirectory
-o
Write Directory for entity, message and optionset files
--serviceContextName
-sctx
The name for the generated service context. If a value is passed in, it will be used for the Service Context. If not, no Service Context will be generated.
--settingsTemplateFile
-stf
Contains Settings to be used for this run of the Dataverse Model Builder, overrides any duplicate parameters on command line. Cannot be set when --writesettingstemplate is used.
--suppressGeneratedCodeAttribute
-sgca
When set, this suppress all generated objects being tagged with the code generation engine and version
This parameter requires no value. It is a switch.
--suppressINotifyPattern
When enabled, does not write the INotify wrappers for properties and classes.
--writesettingsTemplateFile
-wstf
When Set, writes a settings file out to the output directory with the current passed settings or default settings
See also
Microsoft Power Platform CLI Command Groups
Microsoft Power Platform CLI overview
Feedback
Submit and view feedback for