Best answer

How to Use parseInt()

  • 29 December 2021
  • 2 replies

Userlevel 1

HubSpot has an “Annual Revenue” property that is currently in single-line text format. I need this field as a number property.

Someone recommended that I use Zapier and the parseInt() function to extract the number and then import the number into HubSpot as a new property. 

I am new to Javascript coding, and my attempts at using Code by Zapier have not been successful. Can you provide the Javascript code I should input into the Code section? Screenshot attached. 


Best answer by Troy Tessalone 29 December 2021, 21:18

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.

2 replies

Userlevel 7
Badge +14

Hi @TREWDre 

Give this Javascript Code a try:




Userlevel 1

Perfect! This does appear to work. Thank you, @Troy Tessalone!


I’ve attached a screenshot of the overall flow in case anyone else using HubSpot encounters this challenge.