Format source data to match acceptable form

Status: Closed · Asked by RAA on · 0 views

RAA — Question ·

Hi Friends,

I have a complicated issue.

When a customer creates an account, I send the information to Google Sheets and then to Chargebee.

The information in Google Sheets needs to be formatted in a certain way so that Chargebee can accept it.
In the image, you'll see the pharmacy name, phone number, and zip codes need to be updated.

What's the best way to automatically update the last three columns before sending it to Chargebee on schedule?

RAA — Reply ·

thank you - to format the zip, I wrote an extensive formular.

What is the best way to replicate this in the formatter?

=if(Len(ZIP)<=4,text(ZIP,"00000"),if(len(ZIP)>6,text(ZIP,"00000-0000"),text(ZIP,"00000")))

Himesh Soni — Reply ·

You can write javascript to convert the code with the help of "Code" action.

Automation Freelancer
Contact me - https://www.facebook.com/himeshsoni07
Email - [EMAIL][email hidden][/EMAIL]
RAA — Reply ·

Here is what I have in pabbly but it isn't working for me.

IF(LEN('7045')<=4, text(7045,"00000"), IF(LEN('7045')>6,TEXT(7045,"00000-0000"),TEXT(7045,"00000")))

You can write javascript to convert the code with the help of "Code" action.

hmmm... can you help me with this please?

Himesh Soni — Reply ·

I'm not coder but yeah you can pass the same query to chatgpt. And chat gpt will give some code snippet to you and you can test that in code action.

Automation Freelancer
Contact me - https://www.facebook.com/himeshsoni07
Email - [EMAIL][email hidden][/EMAIL]

Back to all forum threads · Log in to reply