Skip to main content

Notifications

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++??

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

    I cant understand can you send me a code,

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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
    Coders 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
    GirishS 27,821 Super User 2024 Season 1 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
    Coders 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
    GirishS 27,821 Super User 2024 Season 1 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
    Coders 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
    GirishS 27,821 Super User 2024 Season 1 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
    GirishS 27,821 Super User 2024 Season 1 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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans