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 / Feed combobox/peopl wi...
Power Apps
Answered

Feed combobox/peopl with UPNs/email to display names

(0) ShareShare
ReportReport
Posted on by 834

Hello,

i have a column in a sharepoint list where are upns separated by semicolon and space...  (abd@company.com; bcd@company.com, etc...).

I want to feed this column to a combobox but cant figure out how to split this... something like:

 

Office365Users.UserProfileV2( Split(ThisItem.IdeaAuthors,";").Result ).displayName

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

    Hi @Sifu ,

     

    Could you tell me:

    Do you have a record similar to the picture below?

    v-xiaochen-msft_0-1618467493598.png

    // 'Test' is a 'Single line of text' column.

     

    Do you want to fill the combo box control with these three emails?

    If so, you could use this formula on Items property of combo box control:

    ForAll(Split(First(LIST112).Test,";"),TrimEnds(Result))

     

    If you want to get all UserProfiles and fill the combo box control, you could tyr this formula on Items property of combo box control:

    ForAll(ForAll(Split(First(LIST112).Test,";"),TrimEnds(Result)),Office365Users.UserProfileV2(Value))

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

  • Sifu Profile Picture
    834 on at

    almost working, i had to adapt it to reflect the current item:

    ForAll(ForAll(Split(ThisItem.IdeaAuthors,";"),TrimEnds(Result)),Office365Users.UserProfileV2(Value).displayName)

    but i also get an error, any idea why?

    Sifu_0-1618486343131.png

    oddly it works (with an error..)

     

  • Sifu Profile Picture
    834 on at

    the source column had an ";" after last name... this was the problem

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Sifu ,

     

    You could use filter() function to solve it.

    Please try this formua:

    ForAll(Filter(ForAll(Split(First(LIST112).Test,";"),TrimEnds(Result)),!IsBlank(Value)),Office365Users.UserProfileV2(Value))

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

  • Sifu Profile Picture
    834 on at

    thanks but i already resolved it at the source... so it wont pout the ";" after last user upn

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard