Skip to main content
Best answer

How to Use parseInt()

  • December 29, 2021
  • 2 replies
  • 98 views

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 TessaloneBest answer by Troy Tessalone

Hi @TREWDre 

Give this Javascript Code a try:

 

RESULTS

 

View original
Did this topic help you find an answer to your question?
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

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30948 replies
  • Answer
  • December 29, 2021

Hi @TREWDre 

Give this Javascript Code a try:

 

RESULTS

 


  • Author
  • New
  • 1 reply
  • December 29, 2021

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.