Skip to content
LambogeniusDocs

Compose using XSLT for Azure Logic Apps

Samples

Four runnable Logic Apps covering maps, workflow variables, C# and Azure Functions.

Service provider/serviceProviders/lamboXsltComposeOperation ComposeXslt, shown in the designer as Compose using XSLT.

lambogenius-xslt-compose-samples

The samples repository has four Logic Apps. Each folder builds and runs on its own: ./run.ps1 starts Azurite, the Logic App and, for 04, the sample Function; ./demo.ps1 calls every workflow and checks the results; ./test-all.ps1 runs them all.

SampleWorkflowsShows
01-basicsorder-to-sales-order, inline-map, order-report-html, order-lines-csv, order-to-json, error-handlingDeployed and inline maps, xsl:import, query-string parameters, XML/HTML/text, CSV and JSON from XSLT 1.0, xpath() on the result, catching failures in a Scope
02-workflow-variablesvariables-as-parameters, batch-loop, dynamic-map, approval-routingString, float, boolean and integer variables as parameters; a For each loop collecting results in array, integer and float variables; a variable choosing the map; a Switch on the map's answer
03-csharp-scriptsinvoice-with-csharp, inline-script, timeout-protectionC# helpers for money, dates, regular expressions and a check digit; two script namespaces; compile caching; a runaway script stopped at 5 s
04-azure-functionsorder-to-sales-order, enrich-orders, function-not-allowedaz:InvokeText with the registry, per-transformation caching, a Function 404 caught by the workflow, an alias the action does not allow

Run one

git clone https://github.com/lambogenius/lambogenius-xslt-compose-samples
cd lambogenius-xslt-compose-samples
# save Lambogenius.XsltCompose.LogicApps.1.1.1.nupkg from Downloads in packages/
cd 02-workflow-variables
./run.ps1            # window 1
./demo.ps1           # window 2

Prerequisites: .NET SDK 8 or later with the .NET 8 runtime, Azure Functions Core Tools 4, Azurite and PowerShell 7.