Skip to content

Commit

Permalink
fixed bugged constant symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
TomProkop committed Jun 12, 2024
1 parent 121e25e commit fb4da02
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/Dataverse/templates/pp-entity/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"IsSystemEntity": {
"type": "parameter",
"datatype": "bool",
"defaultValue": "false"
"defaultValue": false
},
"Behavior": {
"type": "parameter",
Expand Down Expand Up @@ -110,10 +110,19 @@
},
"SystemPublisherPrefix": {
"type": "generated",
"isEnabled": "(IsSystemEntity)",
"generator": "constant",
"isEnabled": "(IsSystemEntity == true)",
"generator": "switch", // for some reason constant doesn't respect isEnabled
"parameters": {
"value":""
"cases": [
{
"condition": "(IsSystemEntity)",
"value": ""
},
{
"condition": "(!IsSystemEntity)",
"value": "examplepublisherprefix_"
}
]
},
"replaces":"examplepublisherprefix_",
"fileRename": "examplepublisherprefix_"
Expand All @@ -123,8 +132,8 @@
"datatype": "text",
"replaces": "examplepublisherprefix",
"fileRename": "examplepublisherprefix",
"isRequired": "(!IsSystemEntity)",
"isEnabled": "(!IsSystemEntity)"
"isRequired": "(IsSystemEntity == false)",
"isEnabled": "(IsSystemEntity == false)"
},
"LogicalName": {
"displayName": "Logical name (without publisher prefix)",
Expand Down

0 comments on commit fb4da02

Please sign in to comment.