I’m trying to create a filter and one of the conditions is inside this collection. How do I go about in extracting the id and the value so I can use it in creating a filter?
Hi @Pajoe_Driz
What exactly are you trying to filter?
Are you trying to get the value where the id equals a fixed string and compare it to some fixed value? For example, if the id equals sravn… then return the value to the filter’s Condition, so that you can match it to something (1, 2, …).
If you have more than 1 customField with id = id3, get()will return only the first one. You can get rid of get() and return the full sub-array generated by map(), but you need an Array Operator and an exact match for the array item (the value). See the next example for this.
Or are you trying to get the id where the value equals x? For example, if the value equals 1 then return the id to the filter’s Condition, so that you can check if it contains some text? In this case, you can return the full sub-array generated by map(), but you need an exact match for the array item (the id).
This is false and does not pass the filter☝️
This allows id2 to pass the filter☝️
Just keep in mind that the whole array will pass the filter or not in theses scenarios, so maybe what you need is an iterator before the filter, to check each id individually.
If you want to allow only the ids that have a certain value to pass the filter, just check their values.







