[英]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.我在 Azure 逻辑应用程序中有一个 Liquid 转换步骤,使用 Liquid 连接器的“将 JSON 转换为 JSON”版本。 I need to pass some parameters into the transformation - these values will end up in the JSON output from the transformation.
我需要将一些参数传递到转换中 - 这些值最终会出现在转换的 JSON 输出中。
Unfortunately, I can't find any documentation or examples on how you would pass such parameters into the Liquid map.不幸的是,我找不到关于如何将这些参数传递到 Liquid 地图的任何文档或示例。
There's no way to specifically 'pass parameters' to a Liquid template because Liquid does not support that construct.没有办法专门将参数“传递给 Liquid 模板”,因为 Liquid 不支持该构造。
However, you can easily inject a Parameters object into the source JSON using the Compose Action.但是,您可以使用 Compose Action 轻松地将 Parameters 对象注入到源 JSON 中。 Then you access them like any other value.
然后您可以像访问任何其他值一样访问它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.