web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : T7xNvILa1Yde8SYWBrh65/
Power Apps - Building Power Apps
Answered

filter by sharepoint id column

Like (0) ShareShare
ReportReport
Posted on 11 Apr 2022 15:14:01 by 776

Hi Experts,

 

How to add filter for sharepoint ID column 

 

User should be able to search the gallery using sharepoint ID number

SortByColumns(Filter('DWP Exceptions Tracker',StartsWith('Customer Name',InputSearchID.Text)),"Created",Ascending)

 

AshishJaiswal_0-1649690000239.png

 

I have the same question (0)
  • v-jefferni Profile Picture
    on 13 Apr 2022 at 08:57:13
    Re: filter by sharepoint id column

    Hi @AshishJaiswal ,

     

    SharePoint list ID column is number type, so the formula could be:

    SortByColumns(
     Filter(
     'DWP Exceptions Tracker',
     StartsWith('Customer Name',InputSearchID.Text)
     ||
     ID = Value(nputSearchID.Text)
     ),
     "Created",
     Ascending
    )

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • AshishJaiswal Profile Picture
    776 on 13 Apr 2022 at 10:37:28
    Re: filter by sharepoint id column

    @v-jefferni 

    Thank you for replying 


    I have already tried the above formula 

     

    When i use above formula the startswith function stops working - filter only works on ID column and completely ignores startswith 

  • v-jefferni Profile Picture
    on 14 Apr 2022 at 03:07:59
    Re: filter by sharepoint id column

    Hi @AshishJaiswal ,

     

    I have tested from my end on Title and ID columns and it worked fine. What type is your Customer Name column?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • AshishJaiswal Profile Picture
    776 on 19 Apr 2022 at 06:32:18
    Re: filter by sharepoint id column

    @v-jefferni 

    I am using the same formula it doesn't work for customer column 

    When enter a text in InputSearchID (InputText Control) it does not filter items gallery, it only works from ID column.

    My customer column is a single line of text column 

    AshishJaiswal_0-1650349903415.png

     

  • Verified answer
    v-jefferni Profile Picture
    on 19 Apr 2022 at 07:07:16
    Re: filter by sharepoint id column

    Hi @AshishJaiswal ,

     

    Please first make sure the single StartsWith part is working for the current search text:

     

    SortByColumns(
     Filter(
     'DWP Exceptions Tracker',
     StartsWith('Customer Name',InputSearchID.Text)
     ),
     "Created",
     Ascending
    )

     

     

    If it works, try below formula instead:

     

    SortByColumns(
     Filter(
     'DWP Exceptions Tracker',
     Or(
     StartsWith('Customer Name',InputSearchID.Text),
     ID = Value(InputSearchID.Text)
     )
     ),
     "Created",
     Ascending
    )

     

     

    I'm wondering about one thing. As you said it works for the ID column, the search text you have entered must be a number. So, are the customer names all begin with numbers as well? This seems a bit strange. Below is my test result screenshot:

    vjefferni_0-1650351981119.png

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • AshishJaiswal Profile Picture
    776 on 19 Apr 2022 at 07:58:45
    Re: filter by sharepoint id column

    @v-jefferni 

     

    Hello, the formula does not work, it only works for ID column. My Customer column does not have numbers it has text.

    AshishJaiswal_0-1650354889652.png

     

    AshishJaiswal_1-1650355002360.png

    Works for ID column

    AshishJaiswal_2-1650355089295.png



    BTW this one works for customer column

    SortByColumns(
     Filter(
     'DWP Exceptions Tracker',
     StartsWith('Customer Name',InputSearchID.Text)
     ),
     "Created",
     Ascending
    )
  • v-jefferni Profile Picture
    on 19 Apr 2022 at 08:16:29
    Re: filter by sharepoint id column

    Hi @AshishJaiswal ,

     

    May I have a look at the customer name that begins with "test" in your list?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • AshishJaiswal Profile Picture
    776 on 19 Apr 2022 at 08:57:29
    Re: filter by sharepoint id column

    @v-jefferni 

    Here you go 

    AshishJaiswal_0-1650358636676.png

     

  • v-jefferni Profile Picture
    on 19 Apr 2022 at 09:27:32
    Re: filter by sharepoint id column

    Hi @AshishJaiswal ,

     

    I cannot find the reason and am totally losing the direction. Maybe it's the delegation issue? But there's no delegation warning in that formula...

     

    Please try and:

    1. Check data row limit in settings, change the number to 2000:

    vjefferni_0-1650360386863.png

     

    2. Raise a ticket for more help.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 686 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 433 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 266 Moderator

Last 30 days Overall leaderboard
Loading complete