Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Re: No series code to be dynamic.

(1) ShareShare
ReportReport
Posted on by 4
Hi,
I have used the 'No. Series' table field name 'Code' to get the next number dynamically. Below is the code I have used.
 
Example,
 For the local procedure, use this code for the purpose of inserting a record
DocNo := NoSeriesMgt.GetNextNo('GJNL-RCPT', TODAY, true);
                    CashReceiptJournal."Document No." := DocNo;     
 
How can I make this field dynamic?: 'GJNL-RCPT'   


Thank You 
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 4,753 on at
    Re: No series code to be dynamic.
    Agree with Ahemad, it's default functionality, so no need for code. If your requirement is different, please provide more explanation to help us understand better.
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    Kamal Khakhkhar 303 on at
    Re: No series code to be dynamic.
    Hii there ,
    as per requirement you can debug and update its event to modify the no series selection. for that you need to find the codeunit of posting and through its event you can update its function as per your requirement.
     
    Thank You.
    Kamal Khakhkhar
  • Ahmad Subhani Profile Picture
    Ahmad Subhani 101 on at
    Re: No series code to be dynamic.
    Dynamically if means it should come automatically picking the next number then this is the Default Microsoft Feature present on the No series page. 
     
    Manual - (Just Un-tick that) -(No need of Code)
     
    If you mean something different then need more clarification. 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans