web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 511 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 426 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 159

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans