Use Azure Logic Apps Function expressions
During the execution of your Logic Apps, some values can be set by functions provided by the Workflow Definition Language. You can define these functions when creating your workflow definition actions. For instance, you can combine two strings to one using concat string function.
The functions or expression type of capability in Logic Apps actions can be handy to enhance your Logic App.
Moreover, the functions allow you to do all kinds of expressions such as:
• String functions
• Collection functions
• Logical comparison functions
• Conversion functions
• Math functions
• Date and time functions
• Workflow functions
• URI parsing functions
• Manipulation functions: JSON & XML
You perform these functions on an item or property of a json document or perform another function on the result of a previous function (nesting).
The function expression above is:
The body function (workflow function) provides the value from the previous action calculating the travel time and the div function (math function) needs that value, and the value 60 to get the travel time in minutes. Hence, this is an example of the capability the functions in Logic Apps offer.
Watch this episode from Middleware Friday series: