cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Search by ID from Sharepoint in PowerApps

Hi!
I have one List Screen in which my items have the ID in Sharepoint as a Subtitle. I want to search by all: Title, Subtitle and Body. The problem is that when I try to search by the ID everything goes blank.
I attach the formulas I used in case any of you can help me figure out how to solve it.
Search(my_SP_List, TextSearchBox1.Text, "a", "b", "ID")
The thing is that when I have the formula like this Search(my_SP_List, TextSearchBox1.Text, "a", "b") it works, but not with the ID from Sharepoint:
Thank you very much for your time.
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Search by ID from Sharepoint in PowerApps

Hi @ebm1001 :

Thanks for the suggestion of @WarrenBelz.

I suggest that you first convert the ID to Text format, and then use a combination of filter and or to achieve a similar function:

Please try this code:

 

Filter(my_SP_List,StartsWith(Text(ID),TextSearchBox1.Text)||StartsWith(a,TextSearchBox1.Text)||StartsWith(b,TextSearchBox1.Text))

 

Best Regards,

Bof

 

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Search by ID from Sharepoint in PowerApps

Hi @ebm1001 ,

ID is numeric - Search only searches Text

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted
Community Support
Community Support

Re: Search by ID from Sharepoint in PowerApps

Hi @ebm1001 :

Thanks for the suggestion of @WarrenBelz.

I suggest that you first convert the ID to Text format, and then use a combination of filter and or to achieve a similar function:

Please try this code:

 

Filter(my_SP_List,StartsWith(Text(ID),TextSearchBox1.Text)||StartsWith(a,TextSearchBox1.Text)||StartsWith(b,TextSearchBox1.Text))

 

Best Regards,

Bof

 

View solution in original post

Highlighted
Helper IV
Helper IV

Re: Search by ID from Sharepoint in PowerApps

I am using this code and it gives me a delegation error, it is possible to use another code since my sharepoint list exceeds 2000 records.

Highlighted
Super User III
Super User III

Re: Search by ID from Sharepoint in PowerApps

@CarlosN ,

This is an old closed thread.

Please post a new topic and also explain exactly what code is giving you the Delegation Warning (it is not an error, just warning you of a possible limitation)

Highlighted
Helper IV
Helper IV

Re: Search by ID from Sharepoint in PowerApps

Thank you
I already solved

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,993)