Skip to main content

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. 

Hi @TREWDre 

Give this Javascript Code a try:

 

RESULTS

 


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.