Skip to main content

Notifications

Announcements

No record found.

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

How to find out, if a purchase line has been added to an existing purchase order?

(1) ShareShare
ReportReport
Posted on by 30

Hello, 

how can I find out if an purchase line in an order has been added later, although the purchase order has already been created for a week? 

Do you have any ideas?

Thank you.

  • Maddin Profile Picture
    Maddin 30 on at
    RE: How to find out, if a purchase line has been added to an existing purchase order?

    Thank you all very much your great help :)

  • Verified answer
    KasparsSemjonovs Profile Picture
    KasparsSemjonovs 3,993 Super User 2024 Season 2 on at
    RE: How to find out, if a purchase line has been added to an existing purchase order?

    I would also suggest looking in the option ZHU mentioned - activate change log on Table 39 (Purchase Line) and You can activate only the Insert and check 1 field Line No., so You don't generate too much entries. 
    Then You can view the Change Log Entries, filter by table 39, and sort /filter by document No. - You will see which User and when created each line. 
    It would give You info in the form of this:
    pastedimage1682516544192v1.png

  • Verified answer
    Greg Enns Profile Picture
    Greg Enns 1,102 on at
    RE: How to find out, if a purchase line has been added to an existing purchase order?

    Unfortunately NAV does not have timestamps on records. Have to upgrade to BC for that or else create your timestamps yourself with custom fields. We've been using NAV for 12 years and so we have LOTS of "Created At" and "Created By" custom fields throughout the system--with custom code to populate them.

    The key question here is when you say "lines added later", how do you define "later". Some users will create PO lines quickly, others more slowly. Sometimes a user might get interrupted and come back hours later (if not the next day) to finish creating the PO lines.

    Once you have that defined, then a custom field (or maybe 2) and a little custom code "OnInsertPurchaseLine" should be fairly easy to write for any NAV Developer.

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 75,723 Super User 2024 Season 2 on at
    RE: How to find out, if a purchase line has been added to an existing purchase order?

    Hi, If you don't want to customize, you can set the Change log, but this is not the same as the original usage, so it may be a bit troublesome to find it from the Change Log Entries.

    More details:

    https://learn.microsoft.com/en-us/dynamics-nav-app/across-log-changes

    https://archerpoint.com/change-logs-and-microsoft-dynamics-nav-2016/

    Hope this helps.

    Thanks.

    ZHU

  • Verified answer
    Jun Wang Profile Picture
    Jun Wang 7,440 Super User 2024 Season 2 on at
    RE: How to find out, if a purchase line has been added to an existing purchase order?

    you could consider to use workflow to approve PO if strict control is required. After user changes the line, the change in PO would be detected by system and needs to be approved

  • Suggested answer
    NAV_with_Narang Profile Picture
    NAV_with_Narang 2,238 Super User 2024 Season 1 on at
    RE: How to find out, if a purchase line has been added to an existing purchase order?

    It is difficult for the system to decide which lines were created when the header was created and which lines were created after a couple of days, without the help of any timestamp mark. For humans it is quite easy to point that difference, not for a 2-Dimensional software.

    You can check in SQL if there are any timestamps columns, and filter on that to determine when the record was created

    To the best of my knowledge an additional field may be necessary for you

  • Maddin Profile Picture
    Maddin 30 on at
    RE: How to find out, if a purchase line has been added to an existing purchase order?

    So there is no way to get this information without doing an adjustment by a new field?! From SQL I cannot get this out either? I cannot do anything with the timestamp there, since I cannot resolve it. I also do not necessarily need a date, I would just need to know which rows were created subsequently.

  • Verified answer
    NAV_with_Narang Profile Picture
    NAV_with_Narang 2,238 Super User 2024 Season 1 on at
    RE: How to find out, if a purchase line has been added to an existing purchase order?

    In the newer version of NAV (i.e. Business Central) this is quite attainable by using OOTB features but in NAV2017, to the best of my knowledge it may not be available OOTB

    You will have to ask a developer/your partner (CSP) to add customized fields on the PO Lines: Last Modified at (DateTime). The logic will be written such that whenever a new line is created or an older one is modified, this datetime stamp gets updated. You may chose to name the field as required

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans