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 / Email String Read by F...
Power Apps
Unanswered

Email String Read by Filter as Office365Users.UserProfileV2

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I have an email column in SharePoint with data property as string will it be possible for my filter to read this as a Office365Users.UserProfileV2.  Goal is to show this as Display name in my drop down, is this even possible?

 

Any guides & ideas will be appreciated.

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

    @Anonymous 

    Yes this is all possible.

    However, having is selected in your dropdown will be a matter of matching against the Items property of your control.  If the Items are based on a Search of users, then you can use the UserProfileV2 as your default property.  Otherwise, you just have to match Items to Default.

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @RandyHayes ,

     

    Thanks for the response, could you provide a sample of this?

     

    I am planning to have dropdown or combo box to have an "All' for my collection so that my Gallery will show all the Names in the rows.

     

    I wonder if this solution is still achievable if I have emails string separated by ";". As column will have sometime 2 to 4 emails. Should I consider search box instead? 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Sorry for my delay on this.  Are you still having the question or have you resolved it?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @RandyHayes ,

     

    I was able to separate the email string, how do I show this on my dropdown box as Office365 user display name?

     

    Any inputs?

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Sure thing - what is the Items property of your Dropdown?  (And is it a dropdown or a combobox?)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @RandyHayes , 

     

    I am using a dropdown with items property of string.

     

    Currently this are email address string which I also manage to separate multiple values with the delimiter ";" and applied distinct values.

     

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    I'm not entirely sure what you mean by the Items property is a string.  Items properties are always tables. They may be tables of strings, but they cannot be just a string.

     

    So, I will assume perhaps that you have a table of strings of emails and will proceed with that.

     

    Your formula (for example) would be the following on the Items property of the dropdown:

    ForAll(
     ["email1@domain.com", "email2@domain.com", "email3@domain.com"],
    
     {Value: Office365Users.UserProfileV2(Value).displayname}
    )

     

    This would give you a dropdown with Display Names of the users.  However, each selection would now be the Display Name only (dropdownx.Selected.Value will be a Display Name).  If you still want the email address as well and simply want to display the name, then change formula to the following:

    ForAll(
     ["email1@domain.com", "email2@domain.com", "email3@domain.com"],
    
     {Value: Office365Users.UserProfileV2(Value).displayname},
     Email: Value
    )

     

    Now dropdownx.Selected.Value will be the Display Name and dropdownx.Selected.Email will be the email.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @RandyHayes ,

     

    Thanks for your reply, I should have added its a string collection. Sorry I forgot to mention this.

    I cannot seem to make this work in my collection. 

     

    ClearCollect(
          PersonDropDownColALL,
            PersonDropDownCol,
             ForAll(
              Filter(
               Distinct(
                Split(
                 Concat(
                  GalleryDataCol,
                    Users & ";"
                            ),
                           ";"
                       ),
              Result
           ),
        !IsBlank(Result)
       ),
     ){Value: Office365Users.UserProfileV2(Value).displayname}
    );

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    This is a bit convoluted.  Can you explain more about the purpose of this formula and the definitions of the PersonDropDownCol and the GalleryDataCol?

     

    Are you trying to populate a dropdown with the display names of the users currently in a Gallery?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @RandyHayes,

     

    Both PersonDropDownColAll and PersonDropDownCol are colletions. These collection contains below:

     

    PersonDropDownCol, {Result: "All Users"} and I added this to my PersonDropDownColALL so that this will be the first item in my dropbox.

     

    My GalleryDataCol is basically my collection from Source SharePoint list.

     

    Yes, I am trying to populate the dropdown with the display names of users in the gallery.
     

     

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard