Add hashtag pulled from Etsy tags

I’m trying to use Make.com to post my Etsy listings to Pinterest, Facebook, and Instagram, and I want to format the Tags field from Etsy into a string of hashtags like #whatever. The Etsy module outputs Tags as an array, and I’m using an Iterator to loop through listings. In the social post modules, I’ve tried expressions like {{join(map(7.Tags; add(“#”; trim(.))); " “)}} and {{join(map(7.Tags; add(”#"; replace(trim(.); " "; “”))); " "))}}, but every time I get the error “Module references non-existing module ‘NaN’”. I’ve double-checked for spaces, manually typed the expressions, and also tried using a Set Variable module with the same logic, but nothing works. Make recognises the Tags field and shows it in orange, but still throws the same error when the scenario runs. I just want to loop through the tags, add a # to each, strip spaces, and use the output in captions. Any help would be appreciated — this should be simple and it’s driving me nuts.

Hello, I am completely new to Make.com, but if you need to write this function in JS you can do it that way: array.map((el) => el = ‘#’.concat(el.trim()))
where you need to replace array with your array field name, which stores words

(keep in mind that .map() method does modify the array you’re using it on)

Hi, nice one Ill give that a try :wink: Cheers,

What are you using to input the Java script?