question

KyleMann-7518 avatar image
0 Votes"
KyleMann-7518 asked IoTGirl answered

Is this the correct liquid mapping syntax?

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-maps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IoTGirl avatar image
1 Vote"
IoTGirl answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.