Skip to main content
Best answer

Adding spaces to numbers

  • August 27, 2020
  • 3 replies
  • 267 views

I’ve set up a Zap in which a user submits a Wufoo form to create a Zoom meeting and receives an email notification via Office 365 with the meeting details.  Functionally, everything works great.  But when Zapier pulls the Zoom Meeting ID and inserts this into the email, it’s just one long number.  I would like to retrieve this newly generated 11-digit Meeting ID from Zoom and display it in the ### #### #### format Zoom uses.  There’s a lot of ways to combine numbers or remove spaces/commas but I haven’t seen how to add spaces to make a long number easier to read.

Is there any easy way to do this or would I need to use javascript?

Best answer by andywingrave

Need to use a code step - Luckily it’s super simple:

let number = inputData.number
let data = number.substr(0, 3) + " " + number.substr(3, 4) + " " + number.substr(7,4);

output = [{data}];

 

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

3 replies

andywingrave
Forum|alt.badge.img+9
  • Zapier Solution Partner
  • Answer
  • August 27, 2020

Need to use a code step - Luckily it’s super simple:

let number = inputData.number
let data = number.substr(0, 3) + " " + number.substr(3, 4) + " " + number.substr(7,4);

output = [{data}];

 


  • Author
  • Beginner
  • August 27, 2020

Outstanding.  Thank you!


andywingrave
Forum|alt.badge.img+9
  • Zapier Solution Partner
  • August 27, 2020

My pleasure!