Skip to main content

MGCLatticeSalesInvoiceDocumentAttachmentEntity

The MGCLatticeSalesInvoiceDocumentAttachmentEntity exposes document attachments linked to sales invoice journal records (CustInvoiceJour), including file metadata and content. Uses DocuRefEntity as the root data source following the standard D365 attachment entity pattern.

  • Public collection name: LatticeSalesInvoiceDocumentAttachments
  • Primary key: DocumentId

Fields​

NameTypeMandatoryDescription
DocumentIdDocuDocumentIdNo
ActualCompanyId``No
DocumentAttachmentTypeCodeDocuTypeIdNo
AttachmentDescriptionDescriptionNo
NotesNotesNo
AccessRestrictionDocuRestrictionNo
AttachmentBitMapNo
FileNameFilenameNo
FileTypeFilenameTypeNo
IsDefaultAttachmentDocuDefaultAttachmentNo
SalesOrderNumberSalesIdBaseNo
InvoiceIdCustInvoiceIdNo
InvoiceDateTransDateNo
CustomerAccountCustAccountNo
InvoiceAccountCustInvoiceAccountNo
ExternalSystemMGCLatticeExternalSystemIdNoThe external system, such as a CRM, a marketplace or a legacy ERP, whose key this is.
SalesOrderNumberExternalKeyMGCLatticeExternalKeyNoThe external system's key for the sales order. Send it instead of the sales order number.

Mappings​

Entity fieldData sourceField
DocumentIdDocuRefEntityDocumentId
ActualCompanyIdDocuRefEntityActualCompanyId
DocumentAttachmentTypeCodeDocuRefEntityTypeId
AttachmentDescriptionDocuRefEntityName
NotesDocuRefEntityNotes
AccessRestrictionDocuRefEntityRestriction
AttachmentDocuRefEntityFileContents
FileNameDocuRefEntityFileName
FileTypeDocuRefEntityFileType
IsDefaultAttachmentDocuRefEntityDefaultAttachment
SalesOrderNumberCustInvoiceJourSalesId
InvoiceIdCustInvoiceJourInvoiceId
InvoiceDateCustInvoiceJourInvoiceDate
CustomerAccountCustInvoiceJourOrderAccount
InvoiceAccountCustInvoiceJourInvoiceAccount