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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Get the existing Number Sequence on the Table

(0) ShareShare
ReportReport
Posted on by 20

HI, I had a problem on getting the existing or created number sequence in Dynamic 365. How to code it on X++??

I have the same question (0)
  • Coders Profile Picture
    20 on at
    RE: Get the existing Number Sequence on the Table

    I cant understand can you send me a code,

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Get the existing Number Sequence on the Table

    I think you need to create custom number as mentioned in the blog and use NumberSeq class to assign the new number via code.

    Thanks,

    Girish S.

  • Coders Profile Picture
    20 on at
    RE: Get the existing Number Sequence on the Table

    How to populate automatically the field item number on EcoResproductCreate form?

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Get the existing Number Sequence on the Table

    As far I know you need to create number sequence as per the link and map that EDT to table fields.

    Thanks,

    Girish S.

  • Coders Profile Picture
    20 on at
    RE: Get the existing Number Sequence on the Table

    how about to manually create a number sequence and populate in on the item

    number field.

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Get the existing Number Sequence on the Table

    Please refer to the blog which I sent for creating number sequence with the format you mentioned.

    I am pasting it again for your reference.

    community.dynamics.com/.../custom-number-sequence-in-d365fo

    I am not sure with the functionality of production module but check whether any standard number sequence available for item number.

    Thanks,

    Girish S.

  • Coders Profile Picture
    20 on at
    RE: Get the existing Number Sequence on the Table

    Maybe i would create a new number sequence or item number with this format G-0001 in X++. but i dont know how to do it. and upon clicking new on the production creation it will automatically populate na item number on ecoresproductcreate form

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Get the existing Number Sequence on the Table

    Also, from the screenshot I can see that you are referring to "NumberSequenceCode" EDT which is a standard one.

    Are you creating number sequence for that EDT?

    Thanks,

    Girish S.

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Get the existing Number Sequence on the Table

    I think you missed some steps while creating custom number sequence.

    You need to load the number seqeunce class using runnable class.

    After that you need to go to Organization administration >> Number Sequence >> Number Sequence >> Generate (Button on the action pane).

    Refer to the below blog.

    https://community.dynamics.com/365/financeandoperations/b/nevoitechfinance/posts/custom-number-sequence-in-d365fo

    Thanks,

    Girish S.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 764 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 619 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 603 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans