Nanoflow retrieving generalization instead of specialization

I have a Native app and calling a Datasource nanoflow to retrieve accounts. In my nanoflow I'm retrieving a list of Administration.Account objects, but what I receive is a list of System.User objects (see pictures)   So when I'd like to retrieve an attribute of Administration.Account, for example the 'FullName’, I get the following error:   An error occurred while executing nanoflow data source for widget UxMobile.Home.dataView2: undefined is not an object (evaluating 'this.metaData.attributes[t].type') What is happening here?
1 answers

Hi Pedro, 


Are you syncing both the Administration.Account and System.User entities to the device? The documentation about an offline-first approach states that it is not possible to use more than one entity from a generalization or specialization relation. If you sync both the generalization and specialization, it is unsure which table will be available on the device and under what name. This looks like the issue you're experiencing.


In terms of retrieving a list of System.User objects in a nanoflow on a device, be mindful of the fact that entity access is taken into account. Since the entity access rule for System.User objects is always [id = ‘[%CurrentUser%]’], you will never be able to sync and retrieve other System.User objects apart from your own.

Have you thought about maintaining the desired attributes in separate entity? You would then be able to apply the necessary entity access rules and sync this entity to the device, circumventing any issues with inheritance.