web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How does Business Central technically handle record templates?

(3) ShareShare
ReportReport
Posted on by 836

Hi all,

I’m trying to better understand how templates work internally in Business Central.

I know that Customers, Vendors, Items, Contacts, and Employees can all be created using templates — but I’m not completely sure how Business Central stores and manages these templates technically.

My questions are:


  1. Does Business Central have a separate template table for each entity (Customer Template, Vendor Template, Item Template…)

    or is there only one technical table that stores all templates?


  2. How can we technically track which template was used when a Customer, Vendor, or Item was created?
    I noticed that Business Central does not show the template code on the card after the record is created.

  3. If the system does not store the used template, what is the recommended way to capture it (for audit or customization purposes)?

 

I want to confirm the internal behavior to answer this correctly for users and to know whether I need a custom field/event subscriber if I want to log the template code.

Thanks in advance!

I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    12,878 Super User 2026 Season 1 on at
    Hello ,
     
    Business Central does not have a separate physical “Customer Template / Vendor Template / Item Template” table per entity; all of them are built on the same Configuration Templates framework (Config. Template Header + Config. Template Line), filtered by Table ID for Customer, Vendor, Item, Contact, Employee, etc. When a record is created from a template, BC simply copies the field values and forgets the template — the template code is not stored anywhere on the created record, which is why you don’t see it on the card and can’t reliably determine it afterward. If you need auditability or tracking, the only correct approach is customization: capture the template code at creation time (via event subscribers in the template-application flow) and store it either in a custom field or, preferably, a separate log table (Table ID, Record No., Template Code, User, DateTime). Without that, the information is gone once the record exists.
     
    Regards,
    Oussama Sabbouh
  • Suggested answer
    Jeffrey Bulanadi Profile Picture
    9,112 Super User 2026 Season 1 on at
    Hi,


    Here's how BC handles record templates internally
     

    1. There are separate template tables per entity
    BC doesn’t have one generic “all templates” table. For things like customers, vendors, items, and employees, it has specific template tables such as Customer Template, Vendor Template, and Item Template. These templates hold default values that will be filled into a new record when you use New → Select Template. The user selects a template and BC populates the fields from that corresponding template table.
     
    2. The system does not store which template was used on the created record
    Once a new customer/vendor/item/etc record is created from a template, BC does not persist a link back to “Template Code XYZ was used” on the actual master record. There is no built‑in field on the customer card or item card that shows “Created from Customer Template ABC.” The template values just get copied into the new record at creation time.
     
    3. If you need to track template usage, you must add a custom field
    Because BC doesn’t track the template used, the only way to capture that for audit or reporting is to add a custom field to the master table (e.g., Customer or Item) and populate it when the record is created from a template. You can handle this with an AL event subscriber to hook into the template creation process and write the template code into your custom field. This gives you an audit trail of which template was applied.

     

    Practical takeaway:

    • Yes, there are entity‑specific template tables (customer, vendor, item, etc.).
    • BC doesn’t natively store “template used” on the created record.
    • To track it, you need a custom field + event to write it during creation.


    Helpful References
    Register a new vendor - Business Central | Microsoft Learn
    Extending Customer, Vendor, and Item Templates - Business Central | Microsoft Learn

    If you find this helpful, feel free to mark this as the suggested or verified answer.

    Cheers
    Jeffrey

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,946 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,177 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 555 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans