Hi everyone--
I have a PowerApp exhibiting an odd behavior. I set a variable on a button click from a LookUp on the Title entered in a text input.
Set(varEditSelectedItemID,LookUp(SharePointList, Title=txtEditFormNumber.Text).ID)
The variable seems to store the ID correctly, as I have a label set to "varEditSelectedItemID" and it displays the record's ID.
However, both a gallery and form with Item set to LookUp based on the ID of the variable will sometimes fail to work.
LookUp(SharePointList, ID=varEditSelectedItemID)
This usually happens when I first load the app. The variable name is written correctly in the Item for the Form and Gallery. If I edit the above LookUp and delete one letter of the variable and add it back to complete the variable name, it recognizes it again and the form works properly for the remainder of the session. Is the variable name too long? Are there limits on this? Any other reasons why a LookUp for the form won't recognize the variable name at first?
(I have reasons I'm storing the ID to a variable and not performing the LookUp based on the text input Title field.)