I have a workflow where I use the function slice to take out part of the phone number: {{ $json[“telefone”].slice(0,2)}}
I copied and pasted the node in another workflow and there it doesn’t works. Why?
Hey @fxholl,
My first thought is maybe Whatsapp isn’t a string, If you try {{ $json["Whatsapp"].toString().slice(0,2) }} does that work?
Whatsapp
{{ $json["Whatsapp"].toString().slice(0,2) }}
Thanks @Jon that did it!