Search code examples
jsonazure-logic-appsconnectordotliquid

How do you pass parameters to Azure Logic Apps Liquid Connector for JSON-JSON transformation?


I have a Liquid transformation step in my Azure Logic App, using the "Transform JSON to JSON" version of the Liquid connector. I need to pass some parameters into the transformation - these values will end up in the JSON output from the transformation.

Unfortunately, I can't find any documentation or examples on how you would pass such parameters into the Liquid map.


Solution

  • There's no way to specifically 'pass parameters' to a Liquid template because Liquid does not support that construct.

    However, you can easily inject a Parameters object into the source JSON using the Compose Action. Then you access them like any other value.