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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Extend Item Template file with new fields

(0) ShareShare
ReportReport
Posted on by 5

For a customer i would like to extend the item template with a few fields, but unfortunately in the OnInsert/OnModify trigger of the table Item Template you are not allowed to add more then 17 fields (see FieldRefArray) while the function CreateFieldRefArray can handle 30 array elements. Does anyone have a solution to extend the array from 17 to 30 in the item template OnInsert/OnModfy trigger?

pastedimage1579426844482v1.png

Kind Regards Adalbert

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    you could add a new table "item template custom.", wit an ID field which points to the original item template table, where you add a refID field to connect the 2 tables.

    save the additional fields in the new table.

    the item creation/insertion process for items must then be extended using the new table.

  • Adalbert Karsten Profile Picture
    5 on at

    Hi Franz / Jonathan, thank you for your quick response.

    First I have tried your solution, but it was a bit too complicated for me, because "Item Template" is just a temporary table, more a visual representation of the table "Config. Template Line".

    But your answer did point me in another direction, just show in a subpage the additional Item fields.

    In the OnAfterInsert event of the "Config. Template Header" i add the additional fields to the table "Config. Template Line" and in the subpage you can only modify this fields.

    This works in this case, for the rest I will wait till "Item Template" will work with 30 array elements instead of the 17 right now.

    Again thank you for your answer.

    Kind regard Adalbert

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans