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

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

I have the same question (0)
  • Suggested answer
    Amit Baru Profile Picture
    3,037 on at

    Hi,

    Pls use GetNoseries function instead of InitSeries.

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    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
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi,

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

    thanks

  • Suggested answer
    YUN ZHU Profile Picture
    95,595 Super User 2025 Season 2 on at

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

    https://yzhums.com/2278/

    Thanks.

    ZHU

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 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans