Codeunit "Dataverse Table Builder"
ID 2507
Namespace: System.Apps.ExtensionGeneration
Provides functions for generating runtime Dataverse tables and table extensions based on Dataverse schema.
Properties
| Name | Value |
|---|---|
| Access | Public |
| InherentEntitlements | X |
| InherentPermissions | X |
Methods
StartGeneration
Starts the generation of Dataverse tables and table extensions.
procedure StartGeneration(OverwriteExisting: Boolean): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| OverwriteExisting | Boolean |
Indicates whether to overwrite existing generation. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if the generation was started successfully; otherwise, false. |
UpdateExistingTable
Updates an existing Dataverse table by adding new fields based on the provided Dataverse schema.
procedure UpdateExistingTable(TableId: Integer, FieldsToAdd: List of [Text], DataverseSchema: Text): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| TableId | Integer |
The ID of the table to update. |
| FieldsToAdd | List of [Text] |
The fields to add to the table. |
| DataverseSchema | Text |
The Dataverse schema to use for the update. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if the update was successful; otherwise, false. |
CommitGeneration
Commits the generated Dataverse tables and table extensions to the system.
procedure CommitGeneration(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the commit was successful; otherwise, false. |
ClearGeneration
Clears any ongoing or incomplete generation of Dataverse tables and table extensions.
procedure ClearGeneration()