Load relations in an Event Handler

I have an Event Handler created for a table with relations, how do I load the relations? There is not a method to do so in the generated Java class in the Event Handler download.

Hello @Mark_Cockfield

You can load relations using the following method. Overview - Backendless REST API Documentation
You need to add your own logic to the generated code for the event handler and if you need to load relations, you need to add your own logic.
The following values are available for the addRelation handler

  • RunnerContext context,
  • String columnName,
  • String parentObjectId,
  • Object childrenArrayORWhereClause

So you can use these parameters to load relations.

Regards,
Inna