Suppose I have an item (json object) with about 50 keys.
I want to pass “as is” about 20 of those keys. Don’t want to enter into the “set” and specify field by field if they are strings or ints or whatsoever… Just “pass this, kill that”.
What’s the simplest way to go?
BramKn
September 13, 2022, 7:52pm
2
I think this community node will do what you want.
Hi all,
Often I simply want to get a few fields from a returned data set and rename some of those fields.
At the moment the easiest way of doing this is with the SET node. Which became a lot easier and faster with the awesome new UI changes where we can drag and drop data.
But I still wanted to create this node and it’s functionality because it is helpful in some use cases.
Also Added the functionality to use a template (might need a better word for this) to easily rename fields…
You can use a Function Item node to either remove keys you don’t want, or keep keys you do want. Take a look at this workflow:
2 Likes