How to delete document attachments via HDL
Summary:
I have created a report to bring back the following for my HDL file to delete the attachments:
METADATA|DocumentAttachment|AttachedDocumentId|PersonId|DocumentsOfRecordId|DocumentTypeId |
DELETE|DocumentAttachment|300021581569036|300000313672888|300021581569036|300000045683493
I am getting an error as follows:
You need to include at least 1 attachment for a document record that's a {DOCUMENT_TYPE} document type.
All my records have attachments so I don't understand the error.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
24B
Code Snippet (add any code snippets that support your topic, if applicable):