Fetch/Querying working on dashboard but not on app

I have a simple record called UserCode, the name of the record is created by each user entering the app for first time creating an alphanumeric random string of 8 letters.

When I try to query, or fetch this record FROM THE APP it simply gives me error 11 (not exists) or records.length==0 if i try to query.

If i do it from the dashboard all fine, i can query and fetch.

The name of the record is set as searchable, also tried with queryable. Nothing works. The icloud account I use in the app is the same one as the dasboard.

All permissions are open for that record, except world write.

Any explantion or sollution? i've been 2 days around this and i cant find a way.

Fetch/Querying working on dashboard but not on app
 
 
Q