microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
770 stars 610 forks source link

Unable to raise public event in native table from extension #743

Closed cvale closed 5 years ago

cvale commented 5 years ago

There is an event in Table 81 - General Journal Line - OnMoveGenJournalLine:

image

Before CU2 update it worked when called (raised) from AL code, but now it raises an error saying that "type or method OnMoveGenJournalLine cannot be used for extension development. [AL0296]":

image

We do expect this code to work since the publisher is no local!

AL Extension version: 2.1.69331 Business Central: 26556

AdinaNegrau commented 5 years ago

Hi there.

Could you please provide a bit more detail about why you need to raise the event? Are you customizing some existing code and then you raise it?

JesperSchulz commented 5 years ago

Closing issue due to lack of response. In general, we are hesitant to expose events. We will refactor this event to become local, as global events are no good.