I have a large number of items, and each item has more than one lot number. I want to assign variant codes to each lot number of every item using a configuration package in Business Central. Please don’t just give me documentation — instead, guide me step-by-step on:
Which table IDs I need to export/import,
What data I need to include,
And how to do it in a quick and efficient way.
If someone can help me do this properly and quickly, I’d really appreciate it.
Hi, In Business Central, I want to assign main variant codes to the lot numbers of those items across the main locations. There are more than 1000 such items, and some quantities are already available. I want to assign main variant codes to these lot numbers, which currently do not have any variant code assigned.
The method you suggested creates the Lot No. Information Cards, but the existing entries made against these items do not reflect or pick up these newly created Lot No. Information Cards. please help me out on this if possible Thanks I appreciate you suggestion.
1. Prepare Your Data:
Required columns in Excel:
Item No. (from table 27 "Item")
Lot No. (from table 6505 "Item Ledger Entry")
Variant Code (your custom value)
2. Table IDs to Use:
Primary table: 6500 "Item Variant" (creates variant records)
Secondary table: 6508 "Item Tracking Code" (links variants to tracking)
3. Configuration Package Setup:
Search for "Configuration Packages"
Create new package
Add table 6500 (Item Variant)
Include these fields:
"Item No."
"Code" (your variant code)
"Description"
4. Import Process:
Export template from Configuration Package
Populate your Excel file with:
Column A: Item No.
Column B: Code (variant code)
Column C: Description (optional)
Import back into BC
Pro Tip for Efficiency:
Use Power Query in Excel to combine your item list with lot numbers
Process in batches of 500-1000 records at a time
Verify first with 5-10 test records
Post-Import Steps:
Check results in "Item Variants" page
Assign tracking codes to variants in "Item Tracking Codes" page
If this solution works for you, please mark this answer as verified. For large-scale implementations, consider consulting a Microsoft Partner for automated solutions.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Nimsara Jayathilaka. 4,304
Rishabh Kanaskar 4,045
Sumit Singh 2,970