I have asked experts regarding the issue. Please see below comments from them.
-—
The ActivateEvent does work, however it needs fully qualified names to identify the correct event. That is also why the second button works because it uses the full name.
In this case the correct name to use with ActivateEvent should be ‘All EventTypes (Corporate).Door F123’.
The difference between ActivateEvent and ActivateEventNotify is that ActivateEventNotify sends out a notification internally in the SC which makes sure that the event is selected in the Event panel in the left side of the SC (to show that the event is/has been used).
We don’t have expert knowledge about javascript debugging, but in most modern browsers you can activate a debug window to debug the page. However I believe this issue will be very difficult to debug because I don’t think the ActivateEvent will provide any return information. Part of the debug complexity is because of the communication between the script in the page and the hosting application, so unfortunately I think it will be very difficult to debug for a partner.