Archive Upon Release

rico1931rico1931 Member Posts: 295
edited 2012-11-27 in NAV Three Tier
Hi Everyone,

Just wondering if there was a one liner or something easy to set Sales Quotes and Orders to be Archived upon release. I don't care if there are 100 archives because sales wants to keep opening and re-releasing the order.

or if anyone has a better way, I would def be willing to hear everyone out.

Thanks
-rico1931

Comments

  • ara3nara3n Member Posts: 9,256
    in cu 414 on perform manual release CU add the following code


    ArchiveManagement.StoreSalesDocument(SalesHeader,false);

    ArchiveManagement is CU ArchiveManagement
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.