How to do it...

  1. Extract ch6-design-pattern-discovery.zip to a folder on your machine and copy/paste the following files into your alExtensibleAppProject folder. Make sure to replace the following files with the ones you extracted:
    • Post Transaction.al
    • Transaction Entry.al
    • Transaction Worksheet.al
    • Post Transaction Action.al
    • Handle Post Transaction Action.al

Now, open the alExtensibleAppProject folder in Visual Studio Code.

  1. The first thing we need to do is add an event that can be subscribed to in order to add new post actions.

In Explorer, select Post Transaction Action.al and add the following event publisher to the table:

[IntegrationEvent(false, false)]procedure OnAddPostTransactionAction(var TempPostTransactionAction: Record "Post ...

Get Microsoft Dynamics 365 Business Central Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.