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 / Need to search on 'Cre...
Power Apps
Answered

Need to search on 'Created By' from Sharepoint list

(0) ShareShare
ReportReport
Posted on by 57

Anyone know how to add column "Created By" into a Search function?  Created By column is default in a SharePoint list, and is populated in this case, however is not available to use in a search function for a Gallery.  

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @gmurnock 

     

    Search Function supports only string searches. 

    Have you used Filter / Lookup functions? They will work with Person fields

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

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

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

    Hi @gmurnock ,

    Do you want to search your Gallery items based on the 'Created By' column in the Search function?

     

    Currently, within PowerApps, when using Search function to filter table records, we could only specify Text type column as search column. We could not specify complex type column (e.g. Choice, Person, LookUp type column, ...) as Search column within it.

    Note: The 'Created By' column is actually a Person type column.

     

    As an alternative solution, I think the AddColumns function could achieve your needs. I have made a test on my side, please take a try with the following workaround:

    Set the Items property of the Gallery to following:

    Search(
     AddColumns('YourSPList', "CreateByUser", 'Created By'.DisplayName),
     TextSearchBox1.Text,
     "CreatedByUser",
     "OtherTextColumn1",
     "OtherTextColumn2",
     ...
    )

    Note: Please also set the "Data row limits for Non-delegable" queries option to maximum value -- 2000 within Advanced settings of App settings of your app.

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Filter worked great for me.  Thanks for the delegation videos, @RezaDorrani .

  • takolota1 Profile Picture
    4,980 Moderator on at

    We can also now search on columns like Created By with this workaround: https://powerusers.microsoft.com/t5/Community-App-Samples/Large-SP-List-Delegation-Workaround-App/td-p/2330721

  • abhijithshastry Profile Picture
    22 on at

    Thank you for the response. We had a similar scenario where we had to filter the records where current login user is in multiple Person fields in SharePoint, and your logic worked absolutely well with all delegation warnings removed !!

     

    This is a sample code:

    SortByColumns(
    Search(
    AddColumns('List Name',
    "AuthorEmail", Lower('Created By'.Email),
    "ManagerL1Email", Lower('Manager Name L1'.Email),
    "ManagerL2Email", Lower('Manager Name L2'.Email),
    "SecondaryL1Email", Lower('Secondary Approver L1'.Email),
    "SecondaryL2Email", Lower('Secondary Approver L2'.Email)
    ),
    varCurrentUserEmailLower,
    "AuthorEmail", "ManagerL1Email", "ManagerL2Email", "SecondaryL1Email", "SecondaryL2Email"
    ),
    "ID",
    SortOrder.Descending
    )

     

    Cheers,

    Abhijith

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 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard