Skip to main content

MGCLatticeCustomerDocumentAttachmentEntity

The MGCLatticeCustomerDocumentAttachmentEntity exposes document attachments linked to customer master records (CustTable), including file metadata and content. Uses DocuRefEntity as root data source for consistent attachment handling.

  • Public collection name: LatticeCustomerDocumentAttachments
  • Primary key: DocumentId

Fields​

NameTypeMandatoryDescription
DocumentIdDocuDocumentIdNo
ActualCompanyId``No
DocumentAttachmentTypeCodeDocuTypeIdNo
AttachmentDescriptionDescriptionNo
NotesNotesNo
AccessRestrictionDocuRestrictionNo
AttachmentBitMapNo
FileNameFilenameNo
FileTypeFilenameTypeNo
IsDefaultAttachmentDocuDefaultAttachmentNo
CustomerAccountCustAccountNo
ExternalSystemMGCLatticeExternalSystemIdNoThe external system, such as a CRM, a marketplace or a legacy ERP, whose key this is.
CustomerAccountExternalKeyMGCLatticeExternalKeyNoThe external system's key for the customer. Send it instead of the customer account.

Mappings​

Entity fieldData sourceField
DocumentIdDocuRefEntityDocumentId
ActualCompanyIdDocuRefEntityActualCompanyId
DocumentAttachmentTypeCodeDocuRefEntityTypeId
AttachmentDescriptionDocuRefEntityName
NotesDocuRefEntityNotes
AccessRestrictionDocuRefEntityRestriction
AttachmentDocuRefEntityFileContents
FileNameDocuRefEntityFileName
FileTypeDocuRefEntityFileType
IsDefaultAttachmentDocuRefEntityDefaultAttachment
CustomerAccountCustTableAccountNum