What are you trying to achieve?
I am trying to apply a filter to only go ahead when the value of ANY units is greater than 0 in the following HTTP response.
Please refer to the screenshot to see the data structure.
Steps taken so far
I configured this filter but its not working as expected and is only validating the first value in the array/object
{{1.data.availability .units}} numeric operator greater than 0 (screenshot attached)
Screenshots: scenario setup, module configuration, errors
samliew
December 11, 2024, 6:12am
2
Welcome to the Make community!
You can use the built-in function map
, join
, replace
, split
e.g.:
{{ split(replace(join(map(1.data.availability; "units"); "|"); "0"; emptystring); "|") }}
Paste this into your filter.
Then use the ARRAY Operator: Array length greater than 0
For more information, see the function documentations in the Help Center and do the tutorials in the Make Academy .
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —
Getting Started
Help Centre Basics
Articles & Videos
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.