Question

Edit words in Zapier

  • 2 September 2022
  • 2 replies
  • 17 views

Im trying to reverse words in Zapier. For example "word"-->"drow".

I already looked for an app which I can connect with Zapier, however I didn't found something. Maybe someone else knows something?

From my understanding, this can be also done by Code (Javascript or Python). Due to the fact that I have not really knowledge about coding and the app code by Zapier.

I tried this already, but it looks like that I'm making mistakes. Here is an example picture I tried. zapier testauction network


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +12

@skytv 

Code will be your best bet. Try the below, mapping the value for your word in the input data where the screenshot shows ‘test_word’
 

let original = inputData.word;
let reversed = "";

for (var i=original.length;i>0;i--) {
reversed += original[i-1]
}

return {original,reversed}


 

 

Userlevel 7
Badge +11

@GetUWired that’s awesome! There’s definitely a place for code, and this is one of them :) 

Thanks for sharing!