Codeless - Add children to existing relation

Continuing the discussion from How to set codeless one to many relations:

Im trying to add a new object to an existing relation, but im getting this error:

ERROR | [29458] ReferenceError: _uow is not defined at avatar.generate_upload_link (/opt/backendless/repo/...) 

This is the codeblock, object generation is succesfull

Hi Jan,

You’re using a block that sets relation in the Transaction API (the Add Relation Operation). All blocks from the Transaction API section must be used strictly with the transaction Codeless framework.

Out of curiosity, did you go through the Codeless missions? There is a task that focuses specifically on establishing object relations.

Regards,
Mark

1 Like

Ah sorry, i did misread the rest api documantion.
I did all missions, but it has been a while. gonna look this up in future before posting.