Skip to main content
Greg Lopata (ABB) 님이 #Sales Cloud에 질문했습니다

One of my users accidentally deleted a document from a document folder.  Is there a way to restore a deleted document?  I checked the Recycle Bin, but it appears that it's only used to store deleted object records and not documents.

 

Thanks,

Greg

 

#Sales Cloud

답변 4개
  1. 2021년 12월 4일 오후 10:56

    Hi,

     

    There are several ways of doing it

    For example:  

    Contact[] c = [select id from contact where isDeleted = true LIMIT 1000 ALL ROWS];

     As we are talking about files, you should add isDeleted to ContentDocumentLink  

    SELECT ContentDocumentId, LinkedEntityId  FROM ContentDocumentLink where LinkedEntityId: (Your linkedEntity ID) and LinkedEntity.Type= (Your LinkedEntityType)

    Use the Data Loader

    1. In the Data Loader, click Export All.
    2. Select the object and choose the target for export file. Click Next.
    3. Click Select all fields.
    4. Create filter 'IsDeleted' = True. Click Add Condition.
    5. Click Finish.
    6. Open the CSV file.

    details: https://developer.salesforce.com/forums/?id=9062I000000QyQcQAK

0/9000