In D_AttachmentList what does the IncludeDocAttachments parameter do?

Im having trouble understanding what “IncludeDocAttachments” parameter in D_AttachmentList does.The description says “Include attachments associated with linked Document” and I can’t figure out what that means. I tried following the post-load activity that is referencing the parameter and can’t quite understand what it’s doing.

Leaving the parameter blank seems to work fine for our use case of grabbing all the attachments of a specific case for display in another case (and being able to view, download, etc.).

Can someone explain what the use case is where we would set that parameter to true?

Hi @bretw,

D_AttachmentList data page is used to retrieve a list of attachments associated with a case or other work object. The IncludeDocAttachments parameter in the D_AttachmentList data page is a boolean parameter that specifies whether to include document attachments in the list.

When IncludeDocAttachments is set to true, the data page will include document attachments in addition to regular attachments. Document attachments typically refer to attachments that are related to documents or files associated with the case. Setting this parameter to true allows you to retrieve a comprehensive list of both regular and document attachments associated with the work object.

On the other hand, if IncludeDocAttachments is set to false, the data page will only include regular attachments and exclude document attachments.

Here’s a brief explanation:

  • IncludeDocAttachments=true: Retrieve all attachments, including both regular and document attachments.
  • IncludeDocAttachments=false: Retrieve only regular attachments, excluding document attachments.

This parameter provides flexibility in fetching the specific type of attachments you need for your case or work object.

Regards,

Mohd Qizer Uddin

@Mohd Qizer Uddin Thank you so much for the in-depth explanation - very much appreciated!