How to Make Cnntact Number into string

20 views
Skip to first unread message

Muhammad Moosa

unread,
Sep 18, 2019, 2:08:47 PM9/18/19
to Google Apps Script Community
Hi Guys,

I am importing phone number data from by woocommerce webhook.  All numbers start with a 0 therefore the code var billing_phone = myData.billing.phone; is coming back without the 0 in front.

How do i set this to be returned as a string with the 0 in front?

Técnico Dummy

unread,
Sep 19, 2019, 10:16:24 AM9/19/19
to Google Apps Script Community
Whe you retrieve the value, do so as String(yourvariablewiththephone)
Reply all
Reply to author
Forward
0 new messages