How to delete document attachments via HDL — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!