Data entity
SalesOrderLineDocumentAttachmentV2Entity
Second version of the documents attached to sales order lines, keyed by document ID. Each record holds the attachment type, description, note and file details. It links to the sales order and the line creation sequence number.
- Entity name
SalesOrderLineDocumentAttachmentV2Entity- Public entity name
SalesOrderLineDocumentAttachmentV2- OData collection
SalesOrderLineDocumentAttachmentsV2- Category
Document- Module
Sales and marketing- Read-only
No- Data management enabled
Yes- Configuration key
LogisticsBasic- Keys
DocumentId- Staging table
SalesOrderLineDocumentAttachmentV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/SalesOrderLineDocumentAttachmentsV2- Dataverse virtual table
mserp_salesorderlinedocumentattachmentv2entity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
DocuRefEntity· rootSalesLine· InnerJoin toDocuRefEntity· read-only
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ActualCompanyIdCompany that owns the document type used by this reference. | StringSelectableDataArea | No | No (private) | DocuRef.ActualCompanyId | |
DocumentIdUnique GUID that identifies the document. | GuidDocuDocumentId | No | Yes | DocuRef.DocumentId | |
DocumentAttachmentTypeCodeDocument type of the reference. | String (20)DocuTypeId | No | Yes | DocuType.TypeId | DocuRef.TypeId |
AttachmentDescriptionShort description of the document. | String (60)Description | No | Yes | DocuRef.Name | |
NotesFree-text note about the document. | String (-1)Notes | No | Yes | DocuRef.Notes | |
AccessRestrictionShows whether the document is internal or external. | Enum
| No | Yes | DocuRef.Restriction | |
AttachmentThe content of the attached file, stored as binary data. | ContainerBitmap | No | Yes | None | |
FileNameThe name of the attached file. | String (259)Filename | No | Yes | None | |
FileTypeThe file type or extension of the attached file. | String (259)FilenameType | No | Yes | None | |
IsDefaultAttachmentYes/No value marking this as the default attachment. | EnumDocuDefaultAttachment
| No | Yes | DocuRef.DefaultAttachment | |
SalesOrderNumberSales order number that the line belongs to, pointing to the sales order header. | String (20)SalesIdBase | No | Yes | SalesTable.SalesId | SalesLine.SalesId |
LineCreationSequenceNumberSequence number that records the order in which lines were created. | IntegerSalesLineCreationSequenceNumber | No | Yes | SalesLine.LineCreationSequenceNumber |
Foreign keys (2)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
DocumentAttachmentTypeCode→DocuType.TypeId(key of DocuType)Join on all of:
DocumentAttachmentTypeCode=DocuType.TypeId,ActualCompanyId=DocuType.dataAreaIdMany DocuRef records → exactly one DocuType record
DocuType details: see DocuTypeEntity, EcoResProductDocumentAttachmentEntity, EcoResReleasedProductDocumentAttachmentEntity
SalesOrderNumber→SalesTable.SalesId(key of SalesTable)Many SalesLine records → exactly one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
Need help with SalesOrderLineDocumentAttachmentV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.