I have built an app that takes conditions submitted by a user and suggests contact for them to get support from, they then choose the resource they want in a list box (multiple selection allowed) and I want to use the information selected in this and pull through those peoples emails from office365users for the user to send an automated email.
Where there are multiple options selected I tried the forall function which obviously won't work when searching for users in office365users are it's multiple people.
How can I cycle through the selected resources and return the emails of them, instead of it using all?