Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

How prevent to delete Sales quote archive attachment documents after restore sales quote?

Posted on by 368
Hi Community,
 
I created a factbox to transfer the attachment from the sales quote to the sales quote archive, the process is working well, but the problem is when I try to restore the sales quote archive the document attachments disappear, which happens when I delete directly from the sales quote.
 
Before restoration, the sales quote archive has an attachment:
 
After restored, the document attachment in sales quote is 0
 
In Addition, I tried to solve the problem with the event subscriber but still could not find the solution.
 
 
If you know how I would appreciate it.
 
Thanks
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 90 on at
    How prevent to delete Sales quote archive attachment documents after restore sales quote?
    might be this give you some hint: https://yzhums.com/32931/
  • Yi Yong Profile Picture
    Yi Yong 301 on at
    How prevent to delete Sales quote archive attachment documents after restore sales quote?
    Hello Manuel,
     
    The standard Sales Quote Archive does not come with the attachment module. The customization you did to include the attachment module is not part of the standard event handling.
     
     
    You will need to subscribe to events such as OnAfterRestoreSalesDocument or OnAfterTransferFromArchToSalesHeader to update the record on the Document Attachment table.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 289,068 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,987 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans