1

Unable to access admin field of logged in user from javascript library

Topic: Unable to access admin field of logged in user from javascript library

Hi,

I am trying to access admin fields of logged in user from javascript library. it throws error code : 5 and data =null.

Here is my sample code.

sess.searchItem(accountId, wialon.item.Item.dataFlag.adminFields, function (code, data) {
                    if (code != 0) {
                        console.log("Cannot get account list: " + wialon.core.Errors.getErrorText(code), true);
                        return;
                    }
                    console.log(data);
                });

However with wialon.item.Item.dataFlag.base flag it is giving result without admin field values.

Please help me solve this issue.

Thanks
J Prabhu
2

Unable to access admin field of logged in user from javascript library

Re: Unable to access admin field of logged in user from javascript library

prabhu.janakiraman, hello.
Logged user can't get his or his account custom fields or admin fields. This data is available only for parent users.
Logged user can see custom fields and admin fields only for his child users and accounts.

Head of Wialon Local Department
Gurtam