Skip to content
LambogeniusDocs

Compose using Liquid for Azure Logic Apps

Samples

Eight runnable Logic Apps covering every mode, workflow variables and every kind of failure.

Service provider/serviceProviders/lamboLiquidComposeOperation ComposeLiquid, shown in the designer as Compose using Liquid.

lambogenius-liquid-compose-samples

The samples repository has eight Logic Apps. Each folder builds and runs on its own: ./run.ps1 starts Azurite, the stand-in systems, the sample Function when needed, and the Logic App; ./demo.ps1 calls every workflow and checks the results.

SampleShowsModes
01 · BasicsOne workflow per mode, a C# helper, a Function lookup, a partial and an inline templateall four
02 · Orders to ERPWebshop JSON and partner XML orders to one ERP format, a pick list, an XML acknowledgement; retries, duplicates and outagesJSON to JSON, XML to JSON, JSON to text
03 · CSV and bank filesAn RFC 4180 CSV and an 80-column fixed-width bank file, checked byte for byteJSON to text
04 · Supplier invoiceA UBL 2.1 invoice with three namespaces to an accounts-payable API; required fields and rejectionsXML to JSON
05 · Shipping emailAn HTML email with partials and a plain-text alternative, in English or French, everything escapedJSON to text, JSON to JSON
06 · SOAP serviceA SOAP 1.1 request built from JSON, and its response or SOAP Fault read backJSON to text, XML to JSON
07 · RecipesLiquid essentials, parameters, partials, template versions, XPath, ToJson, and nine failures with their error codesJSON to JSON, XML to JSON
08 · Workflow variablesVariables of every type as parameters, typed results back into variables, a For each that collects results, a variable that picks the template, a Switch on a decisionJSON to JSON, JSON to text

Run one

git clone https://github.com/lambogenius/lambogenius-liquid-compose-samples C:\src\liquid-samples
cd C:\src\liquid-samples
# save Lambogenius.LiquidCompose.LogicApps.0.1.1.nupkg from Downloads in packages/
cd 08-workflow-variables
./run.ps1            # window 1
./demo.ps1           # window 2

Prerequisites: Windows, the .NET 8 SDK, Azure Functions Core Tools 4, Azurite, PowerShell 7, and Python 3 for the stand-in systems. Clone to a short path: the builds write files up to about 165 characters below the clone folder, and Windows limits paths to 260.