Forum Discussion

neil_lindberg's avatar
neil_lindberg
Ideator I
6 years ago
Solved

Adding Relationships - Server Method

Asking with a more general title, but I'm stuck. I have a need to use a server-side method to generate relationships. Eventually I see this as an admin tool using endpoints whenever I figure out how ...
  • AngelaIp's avatar
    6 years ago

    I assume the line identity = identity.apply() splits your query. So you want to add realtionships when you already finished the editing of the Identity.

    -> Delete line  identity = identity.apply();
    -> Replace relationship.apply() with  identity = identity.apply();

    Use a more clearer "where" query with the name of the target database, cause 'name' is available in every table and this could also lead to conflicts. 

    --> setAttribute("where","[Identity].name = 'xyz'");