microsoft / Power-Fx

Power Fx low-code programming language
MIT License
3.21k stars 329 forks source link

Evaluate PowerFX String Expressions for Static Analysis #2735

Open gekarapa opened 1 week ago

gekarapa commented 1 week ago

For specific use cases, for static analysis, we need to retrieve the evaluated result of a PowerFX string expressions. To enable this, we need a method to get the PowerFX output from both string and interpolated string expressions, provided that the interpolated strings do not contain any island expressions.

MikeStall commented 1 week ago

Can you elaborate on the scenario?

gekarapa commented 1 week ago

In the DLP endpoint filtering feature, we need to restrict specific values within action arguments. For example, a user might want to block requests to certain URLs, which will be done by comparing the runtime expression value against the endpoint filtering rule. Note that this restriction will only apply on design time when the expression is a static string, not in other cases. Today, this requirement is limited to string arguments.