How to programetically find out any changes in a Sales Order

arindamarindam Member Posts: 176
Hi All,

I am looking for a technical solution for a technical problem.
The senario :
1. Create a Sales Order and Release it.
2. Now change something in Sales Header part of the document, say add a discount.
3. Now post the doc.

It is running fine with native navision as expected. I am integrating some codes to the process. My code will only run if any changes happen to Sales Head or Sales Line tables.

Is there any command where I can find out any changes are made to that particular document?

Please advice.
Regards,
Arindam

Comments

  • idiotidiot Member Posts: 651
    Consider using Change Log
    NAV - Norton Anti Virus

    ERP Consultant (not just Navision) & Navision challenger
  • arindamarindam Member Posts: 176
    I don't have much idea about Change Log. Can you please guide me how to do that programetically.

    Thank you once again.
  • krikikriki Member, Moderator Posts: 9,110
    I would rather use the archive-functions.
    When releasing, save a version into the archive.
    When Posting the document, you can confront it with the latest archived version.

    Also the change log works, but there is the problem of performance (and maybe also dimensions after some time). Each manual change (=NOT done programmatically) creates 1 or multiple records in it, slowing down all a lot.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.