Best answer

How to Use parseInt()

  • 29 December 2021
  • 2 replies
  • 14 views

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. 

icon

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

View original

2 replies

Userlevel 7
Badge +12

Hi @TREWDre 

Give this Javascript Code a try:

 

RESULTS

 

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. 

Reply