Skip to content

Commit 8ae6e6e

Browse files
committed
Create or update the LCPs.
1 parent e643688 commit 8ae6e6e

23 files changed

+2314
-60
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,28 @@ This tool should allow large implementation to move forwards more easily.
99
How to use:
1010
This is a simple command line tool currently which must be executed as follows:
1111
```
12-
WorkflowModerniser.exe <connectionstring> <workflowid> <outputtype>
12+
WorkflowModerniser.exe <connectionstring> <workflowid> <outputtype> <solutionuniquename>
1313
```
1414
`<connectionstring>` - Connection string for the environment contaning the workflow. See https://learn.microsoft.com/en-us/power-apps/developer/data-platform/xrm-tooling/use-connection-strings-xrm-tooling-connect
15+
1516
`workflowid` - Workflow ID for the Classic Workflow
16-
`<outputtype>` - Valid output types: lowcodeplugin cloudflow (experimental) formscript (experimental)
1717

18-
The output is a JSON serialised array of the outputs. Currently, we do not actually create these in the target environment.
18+
`<outputtype>` - Valid output types: `lowcodeplugin` `cloudflow` (experimental) `formscript` (experimental)
19+
20+
`<soluitionuniquename>` - Solution to add the outputs to (unique name).
21+
22+
The output is a JSON serialised array of the outputs for debugging. The program will then try actually create/update these outputs in the solution you provided.
1923

2024
Status:
2125
- Alpha POC!
26+
- NEW! The outputs are actually created for `lowcodeplugin` output type.
2227
- Only the surface area that I've encountered so far in testing is covered by the converter. It should currently throw an exception when hitting something that isn't handled. Please feed back!
23-
- Currently the results are not saved.
2428
- Only foreground Workflows are currently supported. This is not currently enforced.
25-
- Terminate with success action is not supported
29+
- Terminate with success action is not supported (how do we achieve this?)
2630

2731
Future potential roadmap:
2832
- Create some automated tests if feasible and valuable without them being too rigid (hard!)
2933
- Testing with more real Workflows
30-
- Save results to environment - create the LCPs automatically from the results
3134
- Allow configurable 'best effort' mode where unsupported elements just write an Error("TODO").
3235
- Wrap up in XrmToolbox plugin UI
3336
- Conversion of background Workflows to Power Automate Cloud Flows. This is feasible and the project has been structured to allow it.

WorkflowModerniser/Data/DataverseContext.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ public System.Linq.IQueryable<WorkflowModerniser.Data.SdkMessageProcessingStepSe
7272
}
7373
}
7474

75+
/// <summary>
76+
/// Gets a binding to the set of all <see cref="WorkflowModerniser.Data.Solution"/> entities.
77+
/// </summary>
78+
public System.Linq.IQueryable<WorkflowModerniser.Data.Solution> SolutionSet
79+
{
80+
get
81+
{
82+
return this.CreateQuery<WorkflowModerniser.Data.Solution>();
83+
}
84+
}
85+
7586
/// <summary>
7687
/// Gets a binding to the set of all <see cref="WorkflowModerniser.Data.Workflow"/> entities.
7788
/// </summary>

WorkflowModerniser/Data/EarlyBoundV2Config.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
<EntityTypesFolder>Entities</EntityTypesFolder>
1111
<ExtensionConfig>
1212
<ActionPrefixesWhitelist />
13-
<ActionsWhitelist>analyze</ActionsWhitelist>
13+
<ActionsWhitelist>executefxexpression|
14+
generateautomatedplugin|
15+
generateinstantplugin|
16+
generatepowerfxformula|
17+
updateautomatedplugin|
18+
updateinstantplugin</ActionsWhitelist>
1419
<ActionsToSkip />
1520
<AddDebuggerNonUserCode>true</AddDebuggerNonUserCode>
1621
<AddNewFilesToProject>true</AddNewFilesToProject>
@@ -32,6 +37,7 @@
3237
sdkmessagefilter|
3338
sdkmessageprocessingstep|
3439
sdkmessageprocessingstepsecureconfig|
40+
solution|
3541
workflow</EntitiesWhitelist>
3642
<EntityAttributeSpecifiedNames />
3743
<EntityClassNameOverrides />

WorkflowModerniser/Data/Entities/FxExpression.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,11 +785,6 @@ public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit
785785
{
786786
return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("owningbusinessunit");
787787
}
788-
[System.Diagnostics.DebuggerNonUserCode()]
789-
set
790-
{
791-
this.SetAttributeValue("owningbusinessunit", value);
792-
}
793788
}
794789

795790
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunitname")]

0 commit comments

Comments
 (0)