![]() And overall my solution got much less complex and much more maintainable than the one that I did with a lot of actions in the Logic App. SummaryĮven though I had to type manually the map (Liquid template), it was not so hard to understand the syntax to achieve my goals in the JSON response. ![]() Got this for in his blog post Liquid in API Management. This is the way that the Logic App connector encapsulated my JSON database payload, so you will have to use it to access all other data you are passing.Īlso, note that in the Liquid template there’s a validation to check if the loop execution is the last one so I could add or not a comma to separate the elements in my JSON array response. Note that at the beginning of my Liquid template I used the element content. The final implementation of the Liquid template that I did is as shown below: The language provides us with operators, types, and flow control that will enable us to do more complex maps in an easier way than using Filter and Compose as I did in the first version of my Logic Apps. Now that we have an editor we can learn about the syntax in this link: I used the Liquid Languages Support plugin. Visual Studio Code has plugins we can add to help us validate the syntax of the Liquid template as well as snippets that will help us with the coding. The first thing we need to do is choose an editor for our Liquid template and I decided to use Visual Studio Code for this. Much better right? You can find the ARM Template for this Logic App here: LiquidLogicApp/WithLiquid.jsonīut now I need to move all the Logic that I have in the filters and composes into the Liquid template. In this proposed new design, my Logic Apps will resemble like the picture below: So, I went to look for a better solution and right off the bat, the idea was to use a Liquid template with the Integration Account, which will make my Logic App to call only one extra action instead of 6 and the design will look much cleaner. You can see the code of this version of the Logic App here: LiquidLogicApp/WithFiltersAndComposes.json In general I don’t mind using the compose action to create the JSON’s that I need to use in the Logic Apps that I design, but in this case, due to the complexity of the JSON response that I needed to return, I ended up with 6 extra actions, plus the for each to handle an array section inside the JSON. To create the JSON response in the format the client needed, I used as helpers, an array variable, filters and compose actions as you can see in the picture below: The Logic App is composed basically with an HTTP request connector, a SQL connector, and an HTTP response. Using the Logic Pro is an extremely cost-effective way of vaping each capsule contains 1.5ml of e-liquid (available in 3 classic flavours) and each pack contains three capsules.Let’s start with the structure of the Logic Apps and the initial solution that I came up with using Compose and Filter actions and why I decided to move to use the Liquid template instead. ![]() ![]() Logic Pro pods are compatible with the Logic Pro device. ![]() Logic Compact Intense Pods are available in several unique flavours, including:Ĭhai Latte: a warming, lightly spiced blend inspired by the popular hot drink, with creamy notes of vanilla.īanoffee: A sweet and silky blend of toffee, banana and cream that's wonderfully moreish.Īmber Tobacco: a strong and hearty tobacco flavour with authentic smokey notes. Some prefer nicotine salts to freebase nicotine. Nicotine salts are smoother to inhale and deliver nicotine to your system faster than standard nicotine, known as freebase. This is the same formula used in other branded pods, like JUUL and Blu 2. Intense Pods are made with a nicotine salt formula. Our range of Compact pods includes classic and Intense pods, allowing you to experiment with different strengths and flavours. The pods require no preparation or priming simply click and go. Offering a hassle-free and convenient vaping experience, Logic Compact pods are easily inserted into your Compact device with a quick click. ![]()
0 Comments
Leave a Reply. |