ALAppExtensions
ALAppExtensions copied to clipboard
Gen. Journal Batch - Integration event disabled for extension development
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:
- Create extension and add reference to GenJournalBatch
- Try to call GenJournalBatch.OnCheckGenJournalLineExportRestrictions()
- 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
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.