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

Creating No.Series for a Custom field in Item table

(0) ShareShare
ReportReport
Posted on by 130

Hi All,

I am creating a custom field in item table and I created a custom field in Inventory SetUp for accessing the No. series. In debugging time I am able to see the value in my field, but in my item page I am unable to see the No., I am attaching my code, I created my code in codeunit and calling it in action but it is not working can anyone help me.

pastedimage1664025284282v1.png

pastedimage1664025317172v2.png

  • Suggested answer
    YUN ZHU Profile Picture
    78,989 Super User 2025 Season 1 on at
    RE: Creating No.Series for a Custom field in Item table

    Hi, hope the link below can give you some hints.

    https://yzhums.com/2278/

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    21,414 Moderator on at
    RE: Creating No.Series for a Custom field in Item table

    Hi,

    your code is wrongly declared, please share your code in txt format not in image.

    thanks

  • Suggested answer
    Inge M. Bruvik Profile Picture
    999 Moderator on at
    RE: Creating No.Series for a Custom field in Item table

    To get a new number of a numbers series you have to use the function GetNextNo

    See the simple example below.

    procedure getNumberFromSeries(): Code[20]

       Var

       NoSeriesManagement: Codeunit NoSeriesManagement;

       begin

          Exit(NoSeriesManagement.GetNextNo(NoSerieCode,Today(),true));

       end;

  • Suggested answer
    Amit Baru Profile Picture
    3,027 on at
    RE: Creating No.Series for a Custom field in Item table

    Hi,

    Pls use GetNoseries function instead of InitSeries.

    Regards

    Amit Sharma

    www.erpconsultors.com

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,097 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,872 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans