Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

ZetaDocs in Archived documents

Posted on by 2

We have ZetaDocs working for Purchase Orders, and I wanted to have them on the Purchase Order Archive too.

I used this code in the Purchase Order Archive form, OnAfterGetrecord:

ZdPO."Document Type" := Rec."Document Type";
ZdPO."No." := Rec."No.";
ZdRecRef.GETTABLE(ZdPO);
CurrPage.Zetadocs.PAGE.SetRecordID(ZdRecRef.RecordID);
CurrPage.Zetadocs.PAGE.ACTIVATE(true);


It works, but only for archived POs that still exist in Purchase Header... any ideas on how to make it work even if the Purchase Header doesn't exist anymore?

*This post is locked for comments

  • Verified answer
    SamCha Profile Picture
    SamCha 2 on at
    RE: ZetaDocs in Archived documents

    Did a big hack where if the PO header doesn't exists I create it on the page open and delete it back on page close...

  • SamCha Profile Picture
    SamCha 2 on at
    RE: ZetaDocs in Archived documents

    ZdPO is a Purchase Order Header, not a Purchase Order Archive.

  • Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: ZetaDocs in Archived documents

    The Purchase Order Archive has key of Document Type,No.,Doc. No. Occurrence,Version No.

    So you need to Doc. No. Occurrence, Version No.  on the ZdPO,

  • SamCha Profile Picture
    SamCha 2 on at
    RE: ZetaDocs in Archived documents

    Found out while debugging that ZetaDocs add-in CodeUnit does a get and exits if the Get doesn't work.

    That's really unfortunate... and I can't change that code it says I do not have access.

    Any ideas?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans