Best answer

Webhook to App - remove numbers from field names

  • 14 July 2021
  • 1 reply
  • 86 views

When a payment is made from a customer via our platform webhook field name has number e.g. 1, 2 or 3….at the end

 

Need help with this.

https://docs.google.com/spreadsheets/d/1BYUOHcQvkJtwF-hdlvnBYMjwDBFXngp7tz1Y_m5O90E/edit?usp=sharing

 

The issue I am having is I dont want to create lots of separate zaps there must be a workaround for this?

icon

Best answer by Troy Tessalone 14 July 2021, 06:47

View original

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

1 reply

Userlevel 7
Badge +14

Hi @boij 

You can use a Formatter > Text > Replace step, but will need multiple for each of the fields.

More efficient would be to use a custom Code step to handle all at once.

Check out the JavaScript replace method: https://www.w3schools.com/jsref/jsref_replace.asp