MGCLatticeVendorDocumentAttachmentEntity
The MGCLatticeVendorDocumentAttachmentEntity exposes document attachments linked to vendor master records (VendTable), including file metadata and content. Uses DocuRefEntity as root data source for consistent attachment handling. Complements MGCLatticeCustomerDocumentAttachmentEntity for the vendor master.
- Public collection name:
LatticeVendorDocumentAttachments
- Primary key:
DocumentId
Fields
| Name | Type | Mandatory | Description |
|---|
DocumentId | DocuDocumentId | No | |
ActualCompanyId | `` | No | |
DocumentAttachmentTypeCode | DocuTypeId | No | |
AttachmentDescription | Description | No | |
Notes | Notes | No | |
AccessRestriction | DocuRestriction | No | |
Attachment | BitMap | No | |
FileName | Filename | No | |
FileType | FilenameType | No | |
IsDefaultAttachment | DocuDefaultAttachment | No | |
VendorAccountNumber | VendAccount | No | |
ExternalSystem | MGCLatticeExternalSystemId | No | The external system, such as a CRM, a marketplace or a legacy ERP, whose key this is. |
VendorAccountNumberExternalKey | MGCLatticeExternalKey | No | The external system's key for the vendor. Send it instead of the vendor account. |
Mappings
| Entity field | Data source | Field |
|---|
DocumentId | DocuRefEntity | DocumentId |
ActualCompanyId | DocuRefEntity | ActualCompanyId |
DocumentAttachmentTypeCode | DocuRefEntity | TypeId |
AttachmentDescription | DocuRefEntity | Name |
Notes | DocuRefEntity | Notes |
AccessRestriction | DocuRefEntity | Restriction |
Attachment | DocuRefEntity | FileContents |
FileName | DocuRefEntity | FileName |
FileType | DocuRefEntity | FileType |
IsDefaultAttachment | DocuRefEntity | DefaultAttachment |
VendorAccountNumber | VendTable | AccountNum |