Dynamics 365 Business Central: Automatically attaching as PDF to posted sales invoice (Document Attachment)

I saw a question in community yesterday, is there a way to automatically attach a PDF to a posted sales invoice? He wants to save the report before posting in the posted sales invoice.

In fact, BC has standard feature (Attach as PDF…) that can do this, however, it needs to be manually clicked once.

Source : Dynamics 365 Lab
Read more…