Extension Installation – With Condition
Hey Readers,
I just ended up into a situation where in there was a prerequisite like once the Extension is installed it should execute a process by itself to make this extension functional on the Production Environment.
For example let’s take one very simple example where in say once we install an extension we want the Address of all the Customer’s to be modified to a certain value and this should happen the moment the extension is installed. We don’t have that bucket of anything to be executed post extension installation. So how to accomplish this.
We need to make a very simple brand new Codeunit for this and introduce one property which says – Subtype. We need to make Subtype = Install. We have couple of more options but for now lets focus on Subtype as Install. Once you enable this property system will provide you with couple of triggers to handle what you really wish to perform when the Extension is installed.

So once you install this Extension and the Extension is installed you will see all the customer Address modified to – My Test Address.
CHEERS
This was originally posted here.

Like
Report
*This post is locked for comments