web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using Office365Users t...
Power Apps
Unanswered

Using Office365Users to get the email of multiple names taken from a multiselected list box

(0) ShareShare
ReportReport
Posted on by

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?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @BethHarding ,

     

    I've made a test for your reference:

    1\I assume there is a combobox(ComboBox1) and it's items property is :

    ["bof","alex","adel"]

    2\You could try this formula to get mails split by ';'

    Concat(
     ForAll(
     ComboBox1.SelectedItems,
     First(Office365Users.SearchUser({searchTerm:Value})).Mail
     ),Value,";")

    vbofengmsft_0-1704939139223.png

     

    Best Regards,

    Bof

     

  • BethHarding Profile Picture
    on at

    The input is a list box: 

    BethHarding_1-1705050957487.png

     

    When I use for all  and concat to get the output it reads :

    BethHarding_2-1705050982041.png

     

     

    I want to then take these names, all that have been selected, and get the email address (using office365users) of each to send an email requesting support.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard