@babbel1005 change {{$node[“SET TOKEN”].json[“token”]}} to {{$item(0).$node[“SET TOKEN”].json[“token”]}}.
The set token
node returns 1 item, but the Fetch subentities
node receives more than one item. Since Fetch subentities
is going to iterate over all input items and use the item index to resolve the expressions, you end up with something as follow:
Index | Expression | Final Value | |
---|---|---|---|
0 | {{$node[“SET TOKEN”].json[“token”]}} | the token | |
1 | {{$node[“SET TOKEN”].json[“token”]}} | undefined | |
2 | {{$node[“SET TOKEN”].json[“token”]}} | undefined | |
i | {{$node[“SET TOKEN”].json[“token”]}} | undefined |
Using $item(0), you tell the expression always to use the index 0, and as you can see in the table, the index 0 will always resolve to the token.
I hope that helps.