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 / Split ForAll Concat Of...
Power Apps
Unanswered

Split ForAll Concat Office365User

(0) ShareShare
ReportReport
Posted on by 15

Hi Expert,

 

I have below scenario.

1. 1- ComboBox to select multiple entries

2.  1- Text Input to display concatenated entries from ComboBox

3. All above controlls are in one edit form .

4. While updating the form i want to convert each entry to their mail id and keep them in concatenated form with either "," or ";" separated and then it will get stored in sharepoint list.
sample code to convert single text  to my required value .

First(Office365Users.SearchUser({searchTerm:DataCardValue60_1.Text})).Mail.

@v-bofeng-msft  Split string  Office365Users.SearchUser() in combobox not working 

Categories:
I have the same question (0)
  • UdayAdhikari Profile Picture
    450 Most Valuable Professional on at

    @Kashif1 - to display selected names on a label/text control from a combo box use below code:

     

    Note: Update ComboBox1 to atacardvalue of your combo box.

    Concat(
     ComboBox1.SelectedItems,
     ThisRecord.Value & ";"
    )

     

    And here is the code to find corresponding emails from O365 User Profile for selected names:

    Concat(ForAll(
     ComboBox1.SelectedItems,
     First(
     Office365Users.SearchUser(
     {
     searchTerm: ThisRecord.Value,
     top: 1
     }
     )
     )
     ).UserPrincipalName, UserPrincipalName & ",")

     

    Note, I am using UserPrincipalName instead of Mail property to get the email since Mail is a keyword to avoid unseen issues.

     

    Let me know how it goes.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • v-bofeng-msft Profile Picture
    on at

    Hi @Kashif1 :

    Do you want to use the ";" symbol to connect the Mail of all records of Office365Users.SearchUser().

    I think the easiest way is to use the Concat function.

    The Concat function concatenates the result of a formula applied across all the records of a table, resulting in a single string. Use this function to summarize the strings of a table, just as the Sum function does for numbers.

    You can use the following formula to get a string consisting of user email addresses separated by characters ";":

     

     

    Concat(
     Office365Users.SearchUser({searchTerm:DataCardValue60_1.Text}),
     Mail,
     ";"
    )

     

     

    I think this link will help you a lot:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-concatenate

    Best Regards,

    Bof

     

     

  • UdayAdhikari Profile Picture
    450 Most Valuable Professional on at

    Hi @Kashif1 - did you get your question answered? Do you need any further help? If we were able to provide a solution please mark the it as solution to help others with similar questions. 

     

    Thanks

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Kashif1 Profile Picture
    15 on at

    HI,

    Actually i have access issue for my data connector . Once it is fixed by admin i will test and update.

     

    Thanks !!!!

     

     

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard