ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Gen. Journal Batch - Integration event disabled for extension development

Open JuricaB opened this issue 7 years ago • 1 comments

Describe the bug Integration Event OnCheckGenJournalLineExportRestrictions() on T232 Gen. Journal Batch has been disabled for Extension Development in latest Dev preview

To Reproduce Steps and/or AL code to reproduce the behavior:

  1. Create extension and add reference to GenJournalBatch
  2. Try to call GenJournalBatch.OnCheckGenJournalLineExportRestrictions()
  3. Compiler reports : The type or method 'OnCheckGenJournalLineExportRestrictions' cannot be used for 'Extension' development.

Expected behavior Integration event is available to use in extension development, as has been the case up to Cumulative Update 03

Versions:

  • AL Language: 2.1.91153
  • Business Central: * NZ Dynamics NAV 14.0 (28118)/platform 14.0.27940.0

JuricaB avatar Feb 11 '19 20:02 JuricaB

The OnCheckGenJournalLineExportRestrictions event can be subscribed to, but it was not intended to be raised from Extensions- this has been rectified. You may, instead, create your own extension event and raise it at the opportune moment and then subscribe to that event elsewhere.

DuttaSoumya avatar Feb 22 '19 15:02 DuttaSoumya