Workflow in Microsoft dynamics NAV 2017

Hi,

Have you worked with approvals before?

If yes, then you would know that a few lines of code is not enough. You need event subscribers and to setup up your approval workflow. And a few more things.

May I suggest that you eventually check this blog post:

https://tinamenezes.wordpress.com/2017/11/25/procedure-to-create-a-customized-workflow-in-dynamics-nav-by-creating-new-workflow-events-part-1/