Skip to main content

MGCLatticeFreeTextInvoiceDocumentAttachmentEntity

The MGCLatticeFreeTextInvoiceDocumentAttachmentEntity exposes document attachments linked to free text invoice records (CustInvoiceTable), including file metadata and content. Uses DocuRefEntity as root data source for consistent attachment handling.

  • Public collection name: LatticeFreeTextInvoiceDocumentAttachments
  • Primary key: DocumentId

Fields​

NameTypeMandatoryDescription
DocumentIdDocuDocumentIdNo
ActualCompanyId``No
DocumentAttachmentTypeCodeDocuTypeIdNo
AttachmentDescriptionDescriptionNo
NotesNotesNo
AccessRestrictionDocuRestrictionNo
AttachmentBitMapNo
FileNameFilenameNo
FileTypeFilenameTypeNo
IsDefaultAttachmentDocuDefaultAttachmentNo
InvoiceIdCustInvoiceIdNo
CustomerAccountCustInvoiceAccountNo
ExternalSystemMGCLatticeExternalSystemIdNoThe external system, such as a CRM, a marketplace or a legacy ERP, whose key this is.
InvoiceIdExternalKeyMGCLatticeExternalKeyNoThe external system's key for the posted free text invoice. Send it instead of the invoice number.

Mappings​

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