microsoft / powercat-business-approvals-kit

MIT License
34 stars 3 forks source link

[Business Approvals Kit - Feature]: Ability to set node message using PowerFX #260

Open Grant-Archibald-MS opened 4 months ago

Grant-Archibald-MS commented 4 months ago

Is your feature request related to a problem? Please describe.

Provide the ability to set the message of a node using a Power FX Expression

Describe the solution you'd like

The following changes will would be required:

Extend the static text to:

Power Fx is a C# Plugin with PowerFx.Interpreter var powerFxConfig = new PowerFxConfig(Features.PowerFxV1); _engine = new RecalcEngine(powerFxConfig); _engine.UpdateVariable(key, value.ToString()); var newValue = _engine.Eval(text.Substring(1));

https://github.com/Grant-Archibald-MS/PowerAutomate-TestEngineModule/blob/main/src/testengine.module.powerautomate/ValueContainerConvertor.cs

Describe alternatives you've considered

No response

Additional context?

No response

AB#3240

Grant-Archibald-MS commented 4 months ago

Discussion with @Ramakrishnan24689 is there is a Power FX PCF control to edit the Power FX formula