Backendless Support
 
Answered

Order of operations during custom event handling

Hello,

I'm running a custom event handler (javascript) that uses the SDK to execute find() on a particular table. For the table in question, I have an afterFind() event handler that adds a custom parameter.

I would like the find() query in my custom event handler to execute the afterFind() event attached to the table. Right now, it seems to bypass this call when I use the SDK.

Is there an additional parameter I can add to query this, or perhaps another workaround? (I'd rather not have to write a layer to request via the REST API, but if that's the only way...)

Best Answer
photo

I believe it is by design to avoid recursion. The API invoked from server code does not trigger API events.

Leave a Comment

Comments (2)

photo
2

I believe it is by design to avoid recursion. The API invoked from server code does not trigger API events.

photo
1

Got it. I'll find a workaround.

Thanks for all the help, Mark!

photo