Table 50101 "Activation Code Information" fields field(1; ActivationCode; Text14) Description 'Activation code used to activate Customer Rewards field(2; "Date Activated Date) Description 'Date Customer Rewards was activated field(3; "Expiration Date Date) Description 'Date Customer Rewards activation expires keys key(PK; ActivationCode) Clustered true; Customer Rewards Mgt.
Codeunit ID Integer) TableRelation "CodeUnit Metadata".ID; keys key(PK; "Primary Key Clustered true; Customer Rewards table extension objects Customer table extension object The Customer table, like many other tables, is part of the Dynamics 365 Business Central service and it cannot be modified directly by developers.
Editable false; field(RewardPoints; RewardPoints) ApplicationArea All; Caption ' Reward Points Description ' Reward points accrued by customer Editable false; trigger OnAfterGetRecord var CustomerRewardsMgtExt: Codeunit "Customer Rewards Ext.
It pays to shop at Advance!Exclusions, purchases of gift certificates and gift cards are not eligible to earn cash back.Below is the full code for this codeunit.Testing the, advanced, sample Extension topic.The final result can be published, installed, and tested on your tenants.Level; end; end; / Activates Customer Rewards if activation code is validated successfully procedure Text Boolean; var ActivationCodeInfo: Record "Activation Code Information begin / raise event exit(t(ActivationCode end; / publishes event IntegrationEvent(false, false) procedure Text begin end; / Subscribes to event and handles it when.ATP, b Bar's Leaks, bCA National, big Time Products, blue Def.See Also Developing Extensions Getting Started with AL How to: Publish and Install an Extension Converting Extensions V1 to Extensions V2 Feedback We'd love to hear your thoughts.Checklist for Submitting Your App.This walkthrough illustrates the following tasks: Setting up a sandbox environment.By using events when the extension makes external calls to a service, we are able to mock the behavior of what happens when events are raised.begin if ActivationCode ' then Error Activation code cannot be blank.Setup for storing information about the codeunit that should be used to handle events in the extension.In the following section, you will be adding the objects that are needed for the Customer Rewards extension.Table 50102 "Customer Rewards Mgt.Activates Customer Rewards if activation code is validated successfully procedure Text Boolean; var ActivationCodeInfo: Record "Activation Code Information begin / raise event exit(t(ActivationCode end; / publishes event IntegrationEvent(false, false) procedure Text begin end; / Subscribes to event and handles it when the event.Pageextension 50100 "Customer Card Ext." extends "Customer Card" layout addafter(Name) field(RewardLevel; RewardLevel) ApplicationArea All; Caption ' Reward Level Description ' Reward level b and m discount code of the customer.
Prestone ProMotive Purolator Purple Power Q Quaker State.A.
The fields are added in the layout section.
Customer Rewards extension overview, this sample extension enables the ability to set up any number of reward levels and the minimum number of rewards points required to attain that level.