I hope you are liking the blogs and following them. Today, I am here with an interesting and important concept related to AL Extensions.
For us to access Business Central Objects, we have to Download Symbols. This Download of Symbols depends on something called as dependencies in app.json. Due to this, you have the accessibility to Base Application and System Application which is basically the Out-of-the-box Application.
But say, in case you want to use a Custom Object such as a table in another extension, and since this custom extension is not a part of your Base/System Application, you'll have to include its dependencies in the extension where you need it. This is called extending your extension.
Consider,
Extension A - Extension that depends on another Extension
Extension B - Extension needed
The extension that you need will, of course, be of course published in Extension Management (Extension B). You'll have to consider its id, publisher, name and version. and add it in the dependencies of Extension A as shown below:
Extension B:
Extension A:
Then, Download Symbols so that you can use the Objects in this Extension and you are good to go!
Some of the examples can be:
- Extending a custom Enum
- Strange two custom tables to find a value
- Perform some operations based on a table value
- CRUD Operations w.r.t two tables
- Using procedures of Custom codeunit
- Standard table operations to change the value of a Custom table and many more...
Hope this blog was helpful. Stay tuned for another blog, next week. :)
Check out other blogs, if you haven't already.
Please suggest what else do you want me to blog about. Keep following and supporting!
You can also email me at jyotsnaoberainav@gmail.com
Also, visit my website JONAV if you need help with any NAV/BC Services!
Thank you!
No comments:
Post a Comment