Data entity
SalesAutomaticSalesDocumentHeaderTaxChargeEntity
Holds the sales tax codes linked to automatic sales document charge lines. Each record is keyed by the tax code plus the key of the charge line (customer, customer charges group, delivery mode, delivery charges group and line number).
- Entity name
SalesAutomaticSalesDocumentHeaderTaxChargeEntity- Public entity name
SalesAutomaticSalesDocumentHeaderTaxCharge- OData collection
SalesAutomaticSalesDocumentHeaderTaxCharges- Category
Not set- Module
Sales and marketing- Read-only
No- Data management enabled
Yes- Configuration key
Markup- Keys
TaxCode, ChargingCustomerAccountNumber, ChargingChargeCustomerGroupId, ChargingDeliveryModeCode, ChargingChargeDeliveryGroupId, LineNumber- Staging table
SalesAutomaticSalesDocumentHeaderTaxChargeStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/SalesAutomaticSalesDocumentHeaderTaxCharges- Dataverse virtual table
mserp_salesautomaticsalesdocumentheadertaxchargeentity. 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
MarkupAutoLineTaxCharge· rootSalesAutomaticSalesDocumentHeaderChargeEntity· InnerJoin toMarkupAutoLineTaxCharge· read-only
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
TaxCodeSales tax code included for the charge. | StringTaxCode | Yes | Yes | TaxTable.TaxCode | MarkupAutoLineTaxCharge.TaxCode |
ChargingCustomerAccountNumberCustomer account that the automatic charge applies to. | String (20)CustAccount | No | Yes | None | |
ChargingChargeCustomerGroupIdCustomer charges group that the automatic charge applies to. | StringCustMarkupGroupId | No | Yes | None | |
ChargingDeliveryModeCodeMode of delivery that the automatic charge applies to. | StringCustDlvModeId | No | Yes | None | |
ChargingChargeDeliveryGroupIdDelivery charges group that the automatic charge applies to. | StringDeliveryMarkupGroupId | No | Yes | None | |
LineNumberNumber that orders the lines within the parent record. | RealLineNum | No | Yes | MarkupAutoLine.LineNum | |
SalesChargeCodeCode of the charge that the line applies. | StringMarkupCode | No | Yes | MarkupTable.MarkupCode | MarkupAutoLine.MarkupCode |
MarkupAutoLineRecIdAutomatic charge line that this tax code belongs to. | Int64MarkupAutoLineRefRecId | No | No (private) | MarkupAutoLine.RecId | MarkupAutoLineTaxCharge.MarkupAutoLineRecId |
DlvModeRelationMode of delivery that the rule covers. | String (20)DlvModeRelation | No | No (private) | DlvMode.Code | MarkupAutoTable.DlvModeRelation |
DlvModeCodeWhether the rule covers one delivery mode, a group or all. | EnumMarkupDlvModeCode
| No | No (private) | MarkupAutoTable.DlvModeCode | |
AccountRelationCustomer or vendor account, or group, that the rule covers. | String (20)CustVendRel | No | No (private) | CustTable.AccountNumVendTable.AccountNum | MarkupAutoTable.AccountRelation |
AccountCodeWhether the rule covers one account, a group of accounts or all accounts. | EnumMarkupAccountCode
| No | No (private) | MarkupAutoTable.AccountCode |
Foreign keys (6)
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.
TaxCode→TaxTable.TaxCode(key of TaxTable)Many MarkupAutoLineTaxCharge records → exactly one TaxTable record
TaxTable details: see TaxCodeEntity, BusinessDocumentTaxTableEntity, TNVEDToCustomsPaymentsRelationsEntity
SalesChargeCode→MarkupTable.MarkupCode(key of MarkupTable)Join on all of:
SalesChargeCode=MarkupTable.MarkupCode,ModuleType(table field, not in this entity) =MarkupTable.ModuleTypeMany MarkupAutoLine records → zero or one MarkupTable record
MarkupTable details: see PurchProcurementChargeEntity, SalesChargeEntity, PurchProcurementChargeCDSEntity
MarkupAutoLineRecId→MarkupAutoLine.RecId(key of MarkupAutoLine)Many MarkupAutoLineTaxCharge records → exactly one MarkupAutoLine record
MarkupAutoLine details: see GUPSalesAutomaticSalesDocumentHeaderChargeEntity, GUPSalesAutomaticSalesDocumentLineChargeV2Entity, GUPSalesAutomaticSalesDocumentLineChargeEntity
DlvModeRelation→DlvMode.Code(key of DlvMode)Relation also requires DlvModeCode = TableGroupAll::Table.
Many MarkupAutoTable records → zero or one DlvMode record
DlvMode details: see DlvDeliveryModeEntity, RetailDeliveryModeAddressLineEntity, RetailDeliveryModeChannelLineEntity
AccountRelation→CustTable.AccountNum(key of CustTable)Relation also requires ModuleType = MarkupModuleType::Cust, AccountCode = TableGroupAll::Table.
Many MarkupAutoTable records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
AccountRelation→VendTable.AccountNum(key of VendTable)Relation also requires ModuleType = MarkupModuleType::Vend, AccountCode = TableGroupAll::Table.
Many MarkupAutoTable records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
Need help with SalesAutomaticSalesDocumentHeaderTaxChargeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.