Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Archive Electronic Report(ER) on different/multiple location/s

(0) ShareShare
ReportReport
Posted on by 10
Hallo, 
I am trying to save(Archive) an Electronic Report(ER) for SalesInvoice on a diferent location as Archived by default. What I did so far is what described under this article: Implement a custom destination for generated documents - Finance & Operations | Dynamics 365 | Microsoft Learn but my problem is that I want for example, when I trigger the 'Use print management' button to generate the ER, store also this report reference at attachment of the selected record as below.
What i found out is that there is a method under ERDocuManagement class wich called attachFile which is private. On this method I realise that there are two points that should be changed: ret.RefTableId = DocuRef::GetRootTableID(_owner.TableId);  and ret.RefRecId = _owner.RecId; which I guess is what I need to change. My problem is that I do not know if I am on the right direction with a possible solution of my issue.
I appreciate any help and support. I am new on D365 FO and there many gaps of knowledge.

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 Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans