I have added a Numbering Sequence to my changes, but I cant see how to put this in my Customization Project to have everything deployed together to other instances. Am I missing something or do I need to do it in SQL. Any suggestions please.
Solved
Add Numbering Sequence to Customization Project
Best answer by MichaelShirk
Here’s how you can accomplish that.
- Create a custom class derived from the “CustomizationPlugin” class.
- Override the “OnPublished” event with an empty method.
- Override the “UpdateDatabase()” method and add your custom code to set up the numbering sequence programmatically, (Making sure to first check that it doesn’t exist already.)
Here’s the example.
//Class derived from CustomizationPlugin
public class YourSetupPlugin : CustomizationPlugin
{
public override void OnPublished()
{
//Leave Empty
}
public override void UpdateDatabase()
{
//Your custom code to create and assign the numbering sequence if not already set up.
}
}
Note: I don’t really think the empty “OnPublished()” override is required, but this is how it’s set up in our solution and I know this works.
Here is another article on the subject.
Acumatica's Customization Plugin | Acumatica Cloud ERP
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.