I have a SplitInBatches that I get a result I would like to insert as a variable in another node’s expression for me to return the correct value in an IF node
in the attached photo is an example of item 1
{{$node[“Search for request”].json[“registration number”]}}
Returns the value I need, only what it will look for varies, and what it should be search with me through another node {{$node[“SplitInBatches1”].json[“node”][0]}}
In this case what you would need would be something like
{{$node[“Fetch order”].json["{{$node[“SplitInBatches1”].json[“node”][0]}}"]}}
I don’t know if it’s possible to do this, thanks for any help
Hello @Jon , I am jumping into this topic cause I am having some trouble with my expression:
{"attributes":{"MIAL{{$runIndex}}":"{{$node["SplitInBatches"].json["matchingItems"][0]["N° de commande"]}}"},"updateEnabled": true,"email":"{{ $node["SplitInBatches"].json["Email_contact"] }}"}
And my goal is to replace the [0] index of …json[“matchingItems”][0]… with {{$runIndex}}.
If I add it the output return Syntax error.
Do you have any ideas?
As a quick test I have mocked up what I think the output looks like and sent the request to webhook.site and it seems to work as expected, Are you seeing an error or are you expecting the data to be something else?