Event Handlers does not get called - if the action is called from within the API services ??

Hi -

My event handler ‘beforeRegister()’ does not get called, if I am calling ‘Backendless.UserService.register(user)’ from my backend API services.

Is it by design so - or there can be some issue ??

Thanks.

That is correct, it will not be called. This is done to prevent circular dependencies in the invocations.

Definitely that shouldn’t be undocumented. It’s not expected behavior, since for example Parse.com generates same events while in CloudCode