Product Code and Description Automation

By | January 31, 2022

In Sage X3, we recently had a requirement to generate custom product code based on the product category, specifications selected by the user, and to generate product description based on the product code.

Screen path:
Miscellaneous tables:
Development – > Miscellaneous tables – > Definition
Development – > Miscellaneous tables – > Data
Development -> Script Dictionary-> Windows ->OITM

Based on the product categories we had several specifications for each product which users capture in other details tab on Product master. Using these specification we need to generate Product code and descriptions. For which we first created Miscellaneous table definition and in the Miscellaneous Data of each table we created the category code and the specifications related to that category.

New Stuff: How to repeat group header on each page in Crystal Reports

Other Details in product screen
Other Details in product screen
Miscellaneous table Data
Miscellaneous table Data

Once we created miscellaneous tables for all the specifications, we created a custom screen “Other details” which has all the fields of the specifications with the type as ADI.

Once all the specification is selected from the “Other Details” tab in the Product screen, on creation, the Product code and description gets generated. To get the code we will use the “Short description” column and for the description we will use the “Description” column present in the Miscellaneous table for each of that specification.

Once the code and description are fetched, we programmatically concatenate the code and description. For example, in the “Other Details” tab we have selected the specifications as per the below image.

Other Details Output after selection
Other Details Output after selection

Based on the specification selected we will get the Product Code and the Product Description

Generated Product Code and Product Description
Generated Product Code and Product Description

This way we generated Product code and description using Miscellaneous tables.

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence. 

Greytrix caters to a wide range of Sage X3, a Sage Business Cloud Solution, offerings. Our unique GUMU™ integrations include Sage X3 for Sage, Dynamics 365 CRM, and Magento eCommerce along with Implementation and Technical Support worldwide for Sage X3. Currently we are Sage X3 Implementation Partner in East Africa, Middle East, Australia, Asia, US, UK. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight  and Letter of Credit and India Legislation for Sage X3 to Sage business partners, end users and Sage PSG worldwide. Greytrix Sales Commission App for Sage X3 simplifies commission calculations and postings on sales transactions.

The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.

Greytrix is a recognized Sage champion ISV Partner for GUMU™ Sage X3 – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage X3 – Salesforce is a 5-star rated app listed on Salesforce AppExchange and GUMU™ integration for Dynamics 365 CRM – Sage ERP listed on Microsoft AppSource.

For more information on Sage X3 Integration and Services, please contact us at, We would like to hear from you.