I build several power apps based on SharePoint lists and I am running into an odd issue with one of my Power Apps.
I have a landing page that lists out all records from my list of Components. When you select a Component I navigate to a different new page that has the details of the record I selected and I have another Gallery that I am filtering out a different SharePoint list because this is a parent/child relationship. The child has a field that is a look to the parent. In my case "Component Name"
I am seeing odd behavior on my Items method using the Sort Filter logic I have used in many of my other Power Apps.
Sort(Filter([@'Innovation Components Versions'], 'Component Name'.Id = BrowseGallery.Selected.ID),'Product Name'.Value,SortOrder.Ascending)
Is not working. The Child records are not showing. BrowseGallery is my Parent list, and Component Name is my lookup field on the Child list.
If I change this to be:
Sort(Filter([@'Innovation Components Versions'], 'Component Name'.Value = BrowseGallery.Selected.'Name (Title)'),'Product Name'.Value,SortOrder.Ascending)
Then my Child records are showing.
Why would it not work when I am searching directly for the Id value? Even when I change the BrowseGalllery.Selected.ID to be the exact value of the Parent lookup (134) it still does not work.
The other strange part of this is, if I change the hard coded Id value to a lower value like 13, then it works. It seems like it will not filter an ID that is above 128. But the records all exist.