Why isn't replace working?

I’m trying to remove all hyphens from a phone number but when i use replace it simply returns empty instead of the string with the hyphens replaced with empty string:

image

Please send your output for phoneAndID so we may be able to help. Thank you!

Hi @Thiago_Borja
Created a sample sturcture like this:


We have to use an iterator to loop through all the values in an array.

Then apply the filter as follows:

Output of filter:

Regards,
Msquare Automation - Gold Partner of Make

Free Consultation | Live Implementation

Visit us here | Youtube Channel

Thank you for the answer

The structure im using is similar but not quite the same, im using arrays:

But no matter the value that comes from the first item of the array (which is a phone number), the value returned is unchanged:

image

P.S. Before it returning an empty value, but that was because of the data I was getting from the webhook that came empty, that was silly of me