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:
Need a new message in the Dataverse tables for node definition, node runtime and node instance
Designer new message for each node (Start with static text first)
Cloud flow query message to include in Approval
Extend the static text to:
Post a message as json with the ID of the node instance
Use the plugin to query the node variables and add the variables using Update Variable
Evaluate the Message using a Dataverse Plugin to evaluate the expression
Pass in the node instance id, query the parameters then call RecalcEngine of PowerFx and return the message
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));
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