# Automatic archive of fully receipted and invoiced PO's

**URL:** <https://www.dynamicsuser.net/t/automatic-archive-of-fully-receipted-and-invoiced-pos/78161>\
**Category:** Business Central/NAV\
**Created:** [May 24, 2023, 10:41am UTC](https://www.dynamicsuser.net/t/automatic-archive-of-fully-receipted-and-invoiced-pos/78161 "2023-05-24T10:41:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Simpson\_Ipsum](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Steve\_Simpson\_Ipsum](https://www.dynamicsuser.net/u/Steve_Simpson_Ipsum)\
**Post date:** [May 24, 2023, 10:41am UTC](https://www.dynamicsuser.net/t/automatic-archive-of-fully-receipted-and-invoiced-pos/78161/1 "2023-05-24T10:41:47Z")

</div>

is there a job that I can schedule a job/codeunit to run that will automatically archive fully receipted and invoiced PO’s?

---

<div class="post-metadata">

**Author:** ![JonathanDelfraisse](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/jonathandelfraisse/32/8459_2.png) [@JonathanDelfraisse](https://www.dynamicsuser.net/u/JonathanDelfraisse)\
**Post date:** [May 24, 2023, 4:47pm UTC](https://www.dynamicsuser.net/t/automatic-archive-of-fully-receipted-and-invoiced-pos/78161/2 "2023-05-24T16:47:04Z")

</div>

There is a report called “Delete Invoiced Purch. Orders”. The report does run the AutoArchivePurchDocument to see if the Archive is checked for Orders based on the Purchase & Payables setup.

> **[Manage, delete, or compress documents - Dynamics NAV App](https://learn.microsoft.com/en-us/dynamics-nav-app/admin-manage-documents)**
>
> Keep your historical data or delete it.

---

<div class="post-metadata">

**Author:** ![sanjana\_mohanty\_sanj](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/sanjana_mohanty_sanj/32/8466_2.png) [@sanjana\_mohanty\_sanj](https://www.dynamicsuser.net/u/sanjana_mohanty_sanj)\
**Post date:** [June 2, 2023, 6:03am UTC](https://www.dynamicsuser.net/t/automatic-archive-of-fully-receipted-and-invoiced-pos/78161/3 "2023-06-02T06:03:51Z")

</div>

Yes, you can schedule a job or codeunit to automatically archive fully receipted and invoiced purchase orders (POs). This involves defining criteria for identifying such POs, checking if all items have been received and invoices recorded. Once the criteria are met, the job runs at set intervals or triggered events, moving the POs to an archive folder or database, updating their status, and generating reports. Note that implementation varies based on your system or software, so consult your system administrator or IT department for proper setup.
