Hello,
I'm trying to query a list of phone numbers from a collection and then store them into a local storage array for use by another javascript module.
I've created a data service as shown in the image.
I'm not sure if I've got that defined correctly with the mapping.
I'm then trying to add javascript in the "phoneNoArray" local storage variable to see the returned results, iterating through the array, but don't seem to be able to accomplish that. Ideally I want to set it up as I can access the array results from other javascript modules in the application.
Any assistance would be much appreciated. Please note that I am not very JS literate, so apologies in advance for my ignorance.
Thanks,
Adeeb