Do you remember this post where in I explain the use of showmycode property from app.json file. With this property we have only one option either we allowed to debug and download your app or vice versa.
Now with new version of AL language this property has been deprecated and new property has been introduced resourceExposurePolicy where in we get leverage to control your app from debug ,download the app file.
This property will be automatically added when new project is created as below.
If you can see in this property we have three options which can be used to control the app and your IP.
AllowDebugging :- Allow to control the debugging of your app when it is published. The default setting is true.
AllowDownloadingSource :- Allow to control the download of your app source code .The default setting is false.
IncludeSourceInSymbolFile: Allow to control symbol to be included in the source code of package. The default setting is false.
Can I add resourceExposurePolicy and showmycode property together ?
With the introduction of this new property in app.json file we can not use showmycode property as it will show an error and warning as below.
Hopefully this will help us to control our IP and provide more security on our app.
This week one of the customer post few transaction and found that one of the field user enter some wrong information. In ideal situation user need to reverse the transaction and post correct transaction which is safest approach.
But do you remember those old days where we have access to the table and can modify the data but with business central this ability no more available . I just build one small extension to modify the data in the table where in we can modify the posted data .
Important: It is not recommended to change data in the tables directly as it will cause inconsistency in database and make database vulnerable.
Just check following video to check small amount of work I did.
With the release of Business Central Wave 1 2020 new feature was introduced called ‘Interface’. It is basically syntactical contract that can be implemented by a non-abstract method. This allows for writing code that reduces the dependency on implementation details, makes it easier to reuse code.
Today we will see how to write an interface and implement in Business central.
For defining interface we no need to have object id.
If you can see in above interface we just define method but not programmed any business logic.
Now Lets see how to implement interface.
Added new code unit which implements the defined interface.
For checking the result of interface created following page with one function.
Above function to initialize the interface.
Lets check the result of interface.
Hope this will help you to understand interface and implementation.