A package is an XML document that defines one or more customization activities that are deployed together to enable a feature.
By grouping related activities in a package, you ensure that changes to one activity do not adversely affect other activities in the package. You also have a single location where you can modify all aspects of a feature.
A customization package has a customErpPackage root element that wraps the child elements, as shown:
The child elements provide the content for the customization feature as follows:
packageDescription names the package, identifies the author, and explains its purpose. This is the only required element.
customFields wrap the individual customField activities. This is the first activity added to a package and often contains data that other activities will need.
smartLinks wrap the SmartLink Click, SmartLink Fetch, Smart Rule, and Smart Event activities. Although these activities serve different functions, they share many data commonalities—in XML terms, they fit under one schema definition.
customReports wrap the individual customReport activities.
Create a package
When creating a package, the easiest approach is to start with the XML package file template, then use the Sage Intacct UI to generate parts of the file. For example, you can export the definition of a Custom Report using Export Def from the UI Wizard, then paste that definition (minus the XML declaration) into the correct place in the template file (below). The same approach can be used for Smart Events and Smart Rules via their wizards.
Understand that if a customization package is deleted in the Sage Intacct UI, everything in that package is deleted. For example, if you include a custom field in your package, and that custom field is used outside of the context of that package, then deleting the package from the UI will delete that custom field everywhere it resides.
You can put more than one custom field, Smart Rule, Smart Event, Smartlink, or custom report in the appropriate section of the template.
You can provide a single customization that applies to multiple transaction definitions. Simply choose Inventory Control Transaction Detail, Purchase Order Transaction Detail, or Order Entry Transaction Detail in the Object field of the customization, then add as many transaction definitions as you want in the Document Type field.
Be aware that when a custom report is installed as part of a package, it cannot be edited in the Sage Intacct UI. However, the report can be duplicated then edited.
Remove any sections you do not use from the templates—they are not allowed.
Each activity exported from the Sage Intacct UI includes the XML declaration at the top. Do not include the declaration when you cut and paste into the template.
Even though you can export a custom list view, the importer does not implement custom list view imports.