cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jaypatel
Level: Powered On

How to set 2 Search field in Powerapps

I am developing PowerApps and Getting error while setting 2 search field.

1st Search by ID( ID is autogenerated 1,2,3...) Error: expecting field Text. Invalid Type

2nd Search by Created BY (It's default one, lets say I create report so by default my name will be at on created by) Error: While putting the condition I didn't get the Created BY field on dropdown list to select. like say Search(ObservationReport, TextBoxSearch1, "ID", "CreatedBy") <- here Its showing error. Can i select Datacardvalue of Created By?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAddict
Level 10

Re: How to set 2 Search field in Powerapps

My bad, try this: 

 

Search(AddColumns(ENTITY, "ID_Text", Text(ID), "CreatedBy_Text", 'Created By'.'Full Name'), TextSearchBox2.Text,"ID_Text","CreatedBy_Text")

 

Changed the highlighted part. 

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

7 REPLIES 7
Super User
Super User

Re: How to set 2 Search field in Powerapps

@jaypatel 

Can you please show a screenshot of each error highlighted in the formula bar?  Even better if the complete error message is showing.

PowerAddict
Level 10

Re: How to set 2 Search field in Powerapps

Hi, 

 

Try this: 

 

Search(AddColumns(ENTITY, "ID_Text", ID, "CreatedBy_Text", 'Created By'.'Full Name'), TextSearchBox2.Text,"ID_Text","CreatedBy_Text")

 

Let me know if this doesn't work. 

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

jaypatel
Level: Powered On

Re: How to set 2 Search field in Powerapps

Getting Error! Kindly see Attached picture

jaypatel
Level: Powered On

Re: How to set 2 Search field in Powerapps

Kindly see Attached Pic.

PowerAddict
Level 10

Re: How to set 2 Search field in Powerapps

My bad, try this: 

 

Search(AddColumns(ENTITY, "ID_Text", Text(ID), "CreatedBy_Text", 'Created By'.'Full Name'), TextSearchBox2.Text,"ID_Text","CreatedBy_Text")

 

Changed the highlighted part. 

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

jaypatel
Level: Powered On

Re: How to set 2 Search field in Powerapps

Thank You Very much!! 

PowerAddict
Level 10

Re: How to set 2 Search field in Powerapps

Glad I could help!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,636)