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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Unable to Filter by ID...
Power Apps
Answered

Unable to Filter by ID from Dataverse

(0) ShareShare
ReportReport
Posted on by 514

I have a primary key Table value in Dataverse.

The value for the record I am trying to retrieve is 0001

 

I have tried doing a lookup and a Filter, but neither seem to fetch any data.

 

In my items property of my form I have

 

Lookup(Tablename, PersonID = 0001)

 

or ideally I want to filter it by a variable value that has 0001

Lookup(Tablename, PersonID = variablevalue)

I also tried filter, but that does not appear to work either.

These statements seem to work against Sharepoint and SQL Server, but not Dataverse it seems.

 

Any help appreciated.

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    What type of column is PersonID in the Dataverse Table?

  • Verified answer
    sienna28 Profile Picture
    514 on at

    It's set to autonumber.

    I managed to get it working by putting Lookup(Tablename, Value(fieldID) = variablename)

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @sienna28 

    I know it's weird, but autonumbers are considered text in Dataverse. 

  • Verified answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    Autonumbers are text in Dataverse to maintain the leading zeros.  Otherwise it would convert to 1 instead of 0001.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard