How to filter data inside expression?

When i am trying to filter array of object inside expression i have error. Similar with arrow and default functions. I don’t want to take an extra step in the form of a function. Any alternative way to do it inside expression?

Most simple examples:
image
image

Hey @maxbaluev!

On a first glance I can see a typo in your code. You’re not closing the quotes after First Name. Can you try the following code?
{{$json["custom_fields"].filter(item => item.name === "First Name")}}"

Sorry, i am wrote again by hands for post example, but it is not typo mistake. I have similar error on simple example

Yes sorry. That is sadly a known issue. Such inline functions do not work inside of expressions. You would have to do that in a Function-Node.

1 Like