Summary
This module showed how you can use an installation codeunit to insert default data when the extension is installed. This technique is one that is used to provide default data in certain tables so that you don't have to spend time manually entering this data.
This learning path demonstrated how an extension can be developed. The main AL objects and extension objects were used to store the reward levels and to view and edit them. Thus far, the table and the page objects were empty, but the install codeunits were added, which allowed you to initialize the Reward Level table with a standard number of reward levels when the extension was installed.
This sample extension gives you the ability to set up any number of reward levels and the minimum number of reward points that are required to achieve a certain level. When the sample extension is installed, customers begin to accrue one reward point for each sales order. When no reward levels are set up, the customer's reward level is set to NONE, even though the customer might have reward points. To begin using the sample extension, you must accept the extension terms and activate the extension by entering a valid activation code by using the Customer Rewards Assisted Setup Wizard. The steps of this learning path, when completed, allow you to publish the extension on your tenant and create a possible new feature for customers.