Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

How to properly search in "Created by"

(0) ShareShare
ReportReport
Posted on by 48

HI,

 

can someone help me figure out how to properly search in "created by" (data source = SharePoint list) column of data table? 

 

Currently I'm using "AddColumns" and it works great, I can search according to user name .... but just because of that I have problems with my next screens (e.g. Detail screen - showing "Data source" error).

 

Simply, datatable.selected doesn't show any records details. Everything's back to normal when I remove "AddColumns".

I assume it's because I added new column with "Addcolumns" function which doesn't exist in my origin data source.

 

My Home Screen data table "Items" formula:

 

SortByColumns(
Search(
AddColumns(MySharePointlist, "CreatedByUser", 'Created By'.DisplayName),
SearchInput.Text,
"CreatedByUser",
"Title",

...other text columns to search...
), "Created", Descending)

 

 

Data source error on my detail screen:

Error.JPG

 

So...

1, is there any other way how to search in "Created by" column, without using AddColumns

or

2, how to adapt my next screens (e.g. detail screen) data source while using AddColumns in my home screen? 

 

 

Categories:
  • CU29100747-0 Profile Picture
    48 on at
    Re: How to properly search in "Created by"

    @mdevaney  sorry, but that doesn't work. 

    ...["DisplayName"]

    showing me "member of..." text, I don't know why.

    I tried all other options (JobTitle, Email, Dept...), same strange results. Do you know why? 

  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on at
    Re: How to properly search in "Created by"

    @Lubeno78 

    You'll want to change both the DisplayFields and SearchFields property of the Combobox to this code

    ["DisplayName"]

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • CU29100747-0 Profile Picture
    48 on at
    Re: How to properly search in "Created by"

    @mdevaney  thank you for reply.

     

    Combo box with "Choices(MySharePpointList.'Created By') shows only some strange ID's, see below. 

    .DisplayName is not possible to use.

    How to show user's name?

     

    users.JPG

  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on at
    Re: How to properly search in "Created by"

    @Lubeno78 
    You can use a ComboBox control with this code in the Items property to look for the user.

     

    Choices(your_datasource_name.'Created by')

     

     

    Then use this code in the Items property of your data table

     

    Filter(your_datasource_name, 'Created by' = ComboBox1.Selected)

     

     

    Watch this video if you require a full set of instructions:

    https://www.youtube.com/watch?v=tPxE_-DcWkg

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard