Training
Module
Introduction to expressions in Power Automate - Training
Learn how to write expressions in Power Automate.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Expression.Evaluate(document as text, optional environment as nullable record) as any
Returns the result of evaluating an M expression document
, with the available identifiers that can be referenced defined by environment
.
Evaluate a simple sum.
Usage
Expression.Evaluate("1 + 1")
Output
2
Evaluate a more complex sum.
Usage
Expression.Evaluate("List.Sum({1, 2, 3})", [List.Sum = List.Sum])
Output
6
Evaluate the concatenation of a text value with an identifier.
Usage
Expression.Evaluate(Expression.Constant("""abc") & " & " & Expression.Identifier("x"), [x = "def"""])
Output
"""abcdef"""
Training
Module
Introduction to expressions in Power Automate - Training
Learn how to write expressions in Power Automate.