Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

how Line No. and serial no. increment in custom table?

(0) ShareShare
ReportReport
Posted on by 221

Hi all,

I have custom table in which two fields Sr No. and Line No.values should get automatic as 

Serial No. must like 1,2,3, .... so on 

line no. 1000,2000,3000....so on 

how we get such in table

or can anyone tell me how in sales line table: line No. field get value as 1000,2000....so on 

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: how Line No. and serial no. increment in custom table?

    for more help just check Page no. 46, How the Line no. is working there, Hope it will help you.

  • DineshM Profile Picture
    DineshM 221 on at
    RE: how Line No. and serial no. increment in custom table?

    thanks for response sr No. is working

    for line No. added in last of primary key and page property autospiltkey to yes

    but it increament serial no as 10000,7500,8750

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: how Line No. and serial no. increment in custom table?

    For Line No.

    1. Add Line No. in last of the Primary Key

    2. Set Page Propety AutoSplitKey = Yes

    For Sr. No.

     1. In Field Property of Table set AutoIncrement = Yes

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

News and Announcements

Announcing Category Subscriptions!

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,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans