Using Logger.log(response.data.phone)
, I'm getting this in my log:
[{label=work, primary=true, value=5558675309}, {label=work, value=6108287680, primary=false}, {value=6105516373, label=work, primary=false}]
What I want is to return the two phone numbers as 5558675309, 6108287680
.
I've tried Logger.log(response.data.phone.value)
and that doesn't work. I've tried ...phone['value']
, I've tried ...phone[0].value
and this one does return the first phone number 5558675309
. But I would like it to return all of the value
values whenever I put in the phone
key. So how would I modify the logger?