Using functions with Logic Apps
Up to this point, we have been discussing how to create and use functions within a Function App for general use cases when serverless computation is required or when we wish to create an event-driven solution.
Functions can also be called directly from a Logic App. While it is possible to use the event-driven nature of functions to create a highly decoupled and scalable solution, using functions directly called within a Logic App provides a mechanism to add simple business logic that cannot be achieved through the standard functionality available within Logic Apps.
This introduces the Logic Apps equivalent of lambda expressions, which are essentially anonymous functions that are invoked only when required (https://msdn.microsoft.com/en-us/library/bb397687.aspx ...