How to get all numbers from Get all contacts?


I’m trying to get a list of phone numbers from the device using the Get all contacts component. I could get all the records from the component but when I assign the phone numbers to a page or data variable using the formula outputs[“Get all contacts”].contacts[0].phoneNumbers[0].number it only returns the first record. I played around by removing the [0] but it didn’t help.

I’m thankful if anyone could point out where I went wrong, thanks.