i am geting a webhook that has a json file with 2 lins that i need
is the phone munber
is the name
so i do a “set”
to clear the noise and i am geting item with 2 items inside
phone number = [email protected]
name = name
how can i separate so i will have the phone number alone?
BramKn
July 12, 2022, 4:57pm
2
Hi @Yossi_Yhezkel
You can use the keep only set boolean in the set node. This will only keep the values you actually set in the node.
If it is multiple lines you could use the IF node to filter the lines you want to get.
Hope this helps.
If not please share sample data so we can understand it better and fix an example for you.
this was the solution
for (item of items) {
item.json.phone = item.json.phone.split(“@”)[0];
BramKn
July 12, 2022, 5:48pm
4
Ah thats what you wanted to do
You can also do this in a set node like below. The first is for dummy data second is your split function in the expression editor.
1 Like