Posts

Showing posts from January, 2020

Test driven development and X++

Test driven development (TDD) is a great way to work with unit testing in D365FO development. There are multiple benefits working with and introducing automatic tests for your code base. You’ll code correctly faster,  Good tests make good documentation You won’t forget to write the tests You’ll write more meaningful tests when you test before code It makes introducing changes later in ALM easier It pushes you to write cleaner code, smaller pieces of code to make testing easier.  The principles of TDD are as follows.  You are not allowed to write any production code unless it is to make a failing unit test pass. You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures. You are not allowed to write any more production code than is sufficient to pass the one failing unit test.  If followed they will ensure that the developer is either working on writing test code or business logic. In X++ it's easy to f

Using Git as source control with MSDyn365FO

Much recommended article on how to setup and work with Git as source control when developing for MSDyn365FO.  Read more here,  https://msdyn365fo.wordpress.com/2020/01/16/using-git-with-msdyn365fo/  .  See my example repository here ,  https://github.com/ponekbladh/d365foblog

Error 'RetailChannelAttributeModifier' for the field 'Modifier' is not found.

Compile error: Enum type 'RetailChannelAttributeModifier' for the field 'Modifier' is not found. Solution: Refer Retail model in your custom model