Skip to content

Commit

Permalink
Added support for activity entities
Browse files Browse the repository at this point in the history
  • Loading branch information
TomProkop committed Jun 12, 2024
1 parent fb4da02 commit 0fce96a
Show file tree
Hide file tree
Showing 3 changed files with 2,746 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ Install the template package to your machine:
dotnet new install TALXIS.DevKit.Templates.Dataverse
```

### Solutions
Initialize a new empty solution:
```console
dotnet new pp-solution --SolutionDisplayName "Solutions.Presentation" --PublisherName "tomas" --PublisherPrefix "tom" --allow-scripts yes
```

### Tables
Create a new table:
```console
dotnet new pp-entity --Behavior New --PublisherPrefix "tom" --LogicalName "shiftevent" --LogicalNamePlural "shiftevents" --DisplayName "Shift Event" --DisplayNamePlural "Shift Events" --allow-scripts yes
Expand Down
16 changes: 15 additions & 1 deletion src/Dataverse/templates/pp-entity/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,20 @@
"datatype": "bool",
"defaultValue": false
},
"EntityType": {
"type": "parameter",
"description": "Select entity type",
"datatype": "choice",
"choices": [
{
"choice": "Standard"
},
{
"choice": "Activity"
}
],
"defaultValue": "Standard"
},
"Behavior": {
"type": "parameter",
"description": "Select how the entity will be added to the solution",
Expand Down Expand Up @@ -174,7 +188,7 @@
"type": "computed",
"value": "(Behavior == \"New\")",
"displayName": "Add Main Form",
"datatype": "bool",
"datatype": "bool"
},
"AddQuickCreateForm": {
"type": "parameter",
Expand Down
Loading

0 comments on commit 0fce96a

Please sign in to comment.