As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
UserDiscovery on android doesnt return custom fields
P
Pankaj Chawla
started a topic
over 9 years ago
Hi
In the users table we have some custom fields to specific additional info like address, user type etc. When I use UserDiscovery android API while I get the user for a specific criteria like email, the data returned doesnt contain any custom fields but only the _id, username and email. Is there a way to get the custom fields when doing the lookup? I can see that Rest API does return all fields and so it seems the android API is stripping off the additional fields on lookup.
UserLookup will only return a limited subset of fields on the user object, so instead you can just query through the User api directly. Note UserLookup is meant to be used to preserve the privacy of users, so we limit the accessible fields on purpose.
Try:
Query q = new Query().equals("email", myEmail");
myClient.user().retrieve(q, new KinveyListCallback(){
Pankaj Chawla
In the users table we have some custom fields to specific additional info like address, user type etc. When I use UserDiscovery android API while I get the user for a specific criteria like email, the data returned doesnt contain any custom fields but only the _id, username and email. Is there a way to get the custom fields when doing the lookup? I can see that Rest API does return all fields and so it seems the android API is stripping off the additional fields on lookup.
Thanks
Pankaj