Support Topics Documentation Slack YouTube Blog

Custom property relationship to other table in Users table

(Wojtek R) #1


I have a Users table with custom property that is relationship to other table. However when I fetch User data this custom property is always null although I controlled in Backendless dashboard that it’s not empty. How can I fetch data from Users table relationship?


(Vladimir Upirov) #2

Hey Wojtek,

For getting relations you have a few variants

  • use loadRelations=[RELATED-PROPERTY-NAME] as query param (for REST)
  • use relationsDepth=[RELATIONS-DEPTH-VALUE] as query param (for REST)
  • enable “Autoload” toggler in column head in DataBrowser

more info you can find here:

Regards, Vlad

(Wojtek R) #3


I’m using relationsDepth parameter set to 2, this problem occurs to me only in “Users” table with custom properties. In other table relationships load just fine.


(Vladimir Upirov) #4

please provide your appId I will try to investigate it

(Wojtek R) #5


After enabling “Autoload” and fetching user by id it works, and this custom property is populated, although when I get it using backendless?.userService.currentUser it’s empty, but fetching it by id is ok for me.

Thanks a lot for quick response!