Support Topics Documentation Slack YouTube Blog

Setting a relation


(Tpg Third) #1

Good Day

I am trying to build a codeless method that should find the user with the parameter object id and then also find a certain team with the team name parameter. When it is found it should add a relation in the users table to the team. This is my codeless code and when invoked I get the error : 400 - Invalid value for the “parent” argument. The argument is required and must contain only string or object values.


(Vladimir Upirov) #2

Hello,

please make sure that your “user” variable contains user object, looks like it doesn’t, that’s why you are getting the error.
And also property “children” of “Set Relations” block must be an array, not an object

Codeless%20-%20aa11aa%20-%20Backendless%202018-09-03%2011-04-49


(Tpg Third) #3

Thank you , it works now.