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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office365User.Searchus...
Power Apps
Unanswered

Office365User.Searchuser multi select

(0) ShareShare
ReportReport
Posted on by 4

Hello

Our company is making an app for reporting purposes.

 

It is a function that saves referrer of mail and sends mail through Flow.

 

I creating it using the Office365User.SearchUser () function.

 

Use the Set function to change the Display Name of the users to email and store them in the global variable "refer".
like this -> Set (refer, 'referer-choice'.Selected.Mail)

 

However, even if you select multiple items, only one value is stored in the variable.

 

How I can save multiple items and send it to multiple referrers together.

 

P.S: Is there any function to search and select office 365 mail group?

 

Any advice would be appreciated.

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @RUFS 

    If I understand you correctly, you want to be able to have all of the selected users from your ComboBox appear in the refer variable. 

    Your refer variable currently is being used as a text variable in your formula.  So, if you are looking to have a delimited (usually a ; ) text value in the refer variable, you can change your formula to the following:

    Set (refer, Concat('referer-choice'.SelectedItems, Mail & ";"))

    This will give you a text value with all the email addresses separated by semicolons.

     

    If you want to grab the entire selected list into your refer variable (not as a text value, but as a table of values), you can change your formula to the following:

    Set(refer, 'referrer-choice'.SelectedItems)

    This will give you a variable with how ever many names are chosen and all of the same columns as your list source.

     

    I hope this is clear and helpful for you.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard