Skip to main content

MGCLatticePurchaseOrderLineDocumentAttachmentEntity

The MGCLatticePurchaseOrderLineDocumentAttachmentEntity exposes document attachments linked to purchase order line records (PurchLine), including file metadata and content. Uses DocuRefEntity as root data source for consistent attachment handling.

  • Public collection name: LatticePurchaseOrderLineDocumentAttachments
  • Primary key: DocumentId

Fields​

NameTypeMandatoryDescription
DocumentIdDocuDocumentIdNo
ActualCompanyId``No
DocumentAttachmentTypeCodeDocuTypeIdNo
AttachmentDescriptionDescriptionNo
NotesNotesNo
AccessRestrictionDocuRestrictionNo
AttachmentBitMapNo
FileNameFilenameNo
FileTypeFilenameTypeNo
IsDefaultAttachmentDocuDefaultAttachmentNo
PurchaseOrderNumberPurchIdBaseNo
LineNumberTradeLineNumberNo
ItemNumberItemIdSmallNo
ExternalSystemMGCLatticeExternalSystemIdNoThe external system, such as a CRM, a marketplace or a legacy ERP, whose key this is.
PurchaseOrderNumberExternalKeyMGCLatticeExternalKeyNoThe external system's key for the purchase order. Send it instead of the purchase order number.
LineNumberExternalKeyMGCLatticeExternalKeyNoThe external system's key for the purchase order line. Send it instead of the purchase order number and line number.

Mappings​

Entity fieldData sourceField
DocumentIdDocuRefEntityDocumentId
ActualCompanyIdDocuRefEntityActualCompanyId
DocumentAttachmentTypeCodeDocuRefEntityTypeId
AttachmentDescriptionDocuRefEntityName
NotesDocuRefEntityNotes
AccessRestrictionDocuRefEntityRestriction
AttachmentDocuRefEntityFileContents
FileNameDocuRefEntityFileName
FileTypeDocuRefEntityFileType
IsDefaultAttachmentDocuRefEntityDefaultAttachment
PurchaseOrderNumberPurchLinePurchId
LineNumberPurchLineLineNumber
ItemNumberPurchLineItemId