Power Apps provides powerful functions that help you build dynamic apps with minimal code. One such function is Search(), which allows users to quickly find records from a data source by typing text into an input box. In this article, we’ll explore how to use the Search() function in Power Apps with a simple employee search demo.
What is Search() in Power Apps?
The Search() function in Power Apps is used to:
Search text across one or more columns
Return matching records from a table or collection
Create real-time search experiences
Syntax:
Search(Table, SearchText, Column1, Column2, ...)
Table: The data source or collection to search
SearchText: The text entered by the user
Columns: One or more columns to search within
Step 1: Create a Sample Employee Collection
Before using the Search() function, we need a data source. In this demo, we’ll create an employee collection.
Open Power Apps Studio
Create a Blank Canvas App
Go to the OnStart property of the App and add the following formula:
ClearCollect(
colEmployees,
{ ID: 1, Name: "John Smith", Department: "HR", Email: "[email protected]", Location: "New York" },
{ ID: 2, Name: "Sara Johnson", Department: "IT", Email: "[email protected]", Location: "London" },
{ ID: 3, Name: "Michael Brown", Department: "Finance", Email: "[email protected]", Location: "Toronto" },
{ ID: 4, Name: "David Wilson", Department: "IT", Email: "[email protected]", Location: "Sydney" },
{ ID: 5, Name: "Emily Davis", Department: "HR", Email: "[email protected]", Location: "Chicago" },
{ ID: 6, Name: "Robert Miller", Department: "Sales", Email: "[email protected]", Location: "San Francisco" },
{ ID: 7, Name: "Sophia Taylor", Department: "Marketing", Email: "[email protected]", Location: "Berlin" },
{ ID: 8, Name: "Daniel Anderson", Department: "Support", Email: "[email protected]", Location: "Dublin" },
{ ID: 9, Name: "Olivia Thomas", Department: "Admin", Email: "[email protected]", Location: "Singapore" },
{ ID: 10, Name: "James Martin", Department: "Operations", Email: "[email protected]", Location: "Dubai" }
);
Run OnStart by selecting App → Run OnStart
This collection contains employee details such as Name, Department, Email, and Location.






Join the conversation! Your thoughts help the community grow.