Is this the correct liquid mapping syntax?

Kyle Mann 1 Reputation point
2021-06-08T17:01:42.47+00:00

Hi guys,

So I've simplified my liquid map but this is the part I'm having a problem with, can someone tell me the correct syntax for dividing the value of the input? I've tried the first line as it is, with only one curly bracket and also without curly brackets, none seem to work?

{% assign my_integer = {<!-- -->{content.vehicleSpecification.engine | divided_by: 100}} %}
{
    "engineSizeCC": {<!-- -->{ my_integer }}
}
```Also if anyone knows of a liquid mapping tool online that they could let me know about it would be very appreciated, the old one I used is now a dead link ([https://masterdatapoc.z6.web.core.windows.net/]())

Thank you in advance,  
Kyle
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,219 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. IoTGirl 3,211 Reputation points Microsoft Employee
    2021-06-08T21:54:36.137+00:00

    I think you will have to leverage someone that knows about Liquid. As long as it produces the correct API call, maps should be OK. If you have a sample of the JSOn/XML result we could look at that... Otherwise I would probably point you to https://social.technet.microsoft.com/wiki/contents/articles/51275.microsoft-azure-liquid-templates-in-logic-apps.aspx

    1 person found this answer helpful.
    0 comments No comments

  2. John Weiss 0 Reputation points
    2024-10-04T05:09:37.9233333+00:00

    Azure is running obsolete version of Liquid Maps

    logic apps uses Dotliquid 2.0.361. Latest Liquid is 2.2.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.