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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to insert Line in Item Tracking Lines

(0) ShareShare
ReportReport
Posted on by 39

I want to insert line in Item Tracking Lines using Code . I tried creating new record and i can see the record if I open the table but it doesnt show in the page, I also tried creating reservation entry but it did not work as well

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    You can follow the below link

    yzhums.com/.../

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 on at

    You can make use of Codeunit 99000830 “Create Reserv. Entry”.

    Check thatnavguy.com/.../ for reference.

  • Muaaz Deyab Profile Picture
    39 on at

    Thanks for your answer, I tried using this CodeUnit but it did not work but It worked for me using this code

                          rec.Validate("Package No.", ItemSpec."Package No.");

                           rec.Validate("Lot No.", ItemSpec."Lot No.");

                           Rec.Validate("Expiration Date", ItemSpec."Expiration Date");

                           rec.Validate("Quantity (Base)", ItemSpec."Quantity (Base)");

                           Rec."Entry No." := NextEntryNo();

                           TestTempSpecificationExists();

                           Rec.Insert();

                           TempItemTrackLineInsert.TransferFields(Rec);

                           TempItemTrackLineInsert.Insert();

                           ItemTrackingDataCollection.UpdateTrackingDataSetWithChange(

                             TempItemTrackLineInsert, CurrentSignFactor * SourceQuantityArray[1] < 0, CurrentSignFactor, 0);

                           CalculateSums();

  • Suggested answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    hello

    use debugging to see why

    DAniele

  • Muaaz Deyab Profile Picture
    39 on at

    I Already solved the problem , Thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 715 Super User 2026 Season 2

#2
AndrewThomas81 Profile Picture

AndrewThomas81 390 Super User 2026 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 386 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans