Table
MarkupAutoTable
Auto charges transactions
Holds the top level of automatic charge rules. Each record sets whether the rule is for a header or line, the module, and which item, account, delivery mode, return code and retail channel it covers. The covered items are given as table, group or all, plus a relation value. Child details are stored in MarkupAutoLine.
- Table name
MarkupAutoTable- Module
Procurement and sourcing- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
Markup- Primary index
MarkupIdx- Replacement key
None- Key fields
ModuleCategory, ModuleType, ItemCode, ItemRelation, AccountCode, AccountRelation, MarkupReturn, ReturnRelation, DlvModeCode, DlvModeRelation, RetailChannelCode, RetailChannelRelation, SHA256Hash- Model
Foundation
Fields (32)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ModuleCategoryShows whether the rule is for a header or for a line. | EnumMarkupModuleCategoryHeadingLine (enum) | No | None | |
ModuleTypeArea the charge belongs to: inventory, customer, vendor or delivery. | EnumMarkupModuleMarkupModuleType (enum) | No | None | |
ItemCodeWhether the rule covers one item, a group of items or all items. | EnumMarkupItemCodeTableGroupAll (enum) | No | PurchAutomaticPurchaseDocumentLineChargeV2Entity | |
ItemRelationItem or item group that the rule covers. | String (20)ItemRelation | No | InventTable.ItemId | PurchAutomaticPurchaseDocumentLineChargeV2Entity |
AccountCodeWhether the rule covers one account, a group of accounts or all accounts. | EnumMarkupAccountCodeTableGroupAll (enum) | No | PurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2EntitySalesAutomaticSalesDocumentHeaderChargeEntityand 1 more | |
AccountRelationCustomer or vendor account, or group, that the rule covers. | String (20)CustVendRel | No | CustTable.AccountNumVendTable.AccountNum | PurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2EntitySalesAutomaticSalesDocumentHeaderChargeEntityand 1 more |
MarkupReturnType of return code the rule uses: none, reason code or disposition code. | EnumMarkupReturnTypeReturnCodeType (enum) | No | None | |
ReturnRelationReturn reason code or disposition code that the rule covers. | StringReturnCode | No | ReturnDispositionCode.DispositionCodeIdReturnReasonCode.ReasonCodeId | None |
DlvModeCodeWhether the rule covers one delivery mode, a group or all. | EnumMarkupDlvModeCodeTableGroupAll (enum) | No | PurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2EntitySalesAutomaticSalesDocumentHeaderChargeEntityand 1 more | |
DlvModeRelationMode of delivery that the rule covers. | String (20)DlvModeRelation | No | DlvMode.Code | PurchAutomaticPurchaseDocumentHeaderChargeV2EntityPurchAutomaticPurchaseDocumentLineChargeV2EntitySalesAutomaticSalesDocumentHeaderChargeEntityand 1 more |
RetailChannelCodeWhether the rule covers one retail channel, a group or all. | EnumRetailChannelCodeTableGroupAll (enum) | No | None | |
RetailChannelRelationRetail channel or channel group that the rule covers. | String (60)RetailChannelRelation | No | RetailChannelTable.RetailChannelIdRetailMarkupAutoChannelGroup.RetailChannelRelation | None |
SHA256HashHash code of the record, used as part of its key. | String (64) | No | None | |
AutoChargesConcurrencyModeSetting for how this auto charge works with other charges. The values are cut off in the metadata.low confidence | EnumGUPAutoChargeConcurrency (enum) | No | GUPSalesAutomaticSalesDocumentLineChargeTableV2EntityGUPSalesAutomaticSalesDocumentLineChargeTableEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionText that describes the charge. | String (60)MarkupAutoTableDescription | No | GUPSalesAutomaticSalesDocumentHeaderChargeTableV2EntityGUPSalesAutomaticSalesDocumentLineChargeTableV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeTableEntityand 7 more | |
IsGupMarkupAutoYes or no flag. Its meaning is not stated in the metadata, but the name suggests a link to the pricing feature.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PriceAttributeGroupCombinationRecIdSystem record ID of the price attribute group combination linked to the rule. | Int64RecId | No | GUPPriceComponentCodePriceAttributeGroupCombination.RecId | None |
PriceComponentCodeNameName of the price component code linked to the rule. | String (80)GUPPriceComponentCodeName | No | GUPPriceComponentCode.Name | GUPSalesAutomaticSalesDocumentHeaderChargeTableV2EntityGUPSalesAutomaticSalesDocumentLineChargeTableV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeTableEntityand 1 more |
PriceComponentTypePrice component that the rule belongs to, such as auto charges, discounts or base price. | EnumGUPPriceComponent (enum) | No | None | |
PricingGroupCodeHeaderWhether the header pricing applies to a group or to all. | EnumGUPPricingAttributeGroupCodeHeaderGUPGroupAll (enum) | No | GUPSalesAutomaticSalesDocumentHeaderChargeTableV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeTableEntity | |
PricingGroupCodeLineWhether the line pricing applies to a group or to all. | EnumGUPPricingAttributeGroupCodeLineGUPGroupAll (enum) | No | None | |
PricingRuleHeaderSystem record ID of the price rule used for the header. | Int64GUPRefRecId | No | GUPPricingRule.RecId | GUPSalesAutomaticSalesDocumentHeaderChargeTableV2EntityGUPSalesAutomaticSalesDocumentLineChargeTableV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeTableEntityand 1 more |
PricingRuleLineSystem record ID of the price rule used for the line. | Int64GUPRefRecId | No | GUPPricingRule.RecId | GUPSalesAutomaticSalesDocumentLineChargeTableV2EntityGUPSalesAutomaticSalesDocumentLineChargeTableEntity |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RetailAdvancedChargesDeliveryProrateYes or no flag for spreading the delivery charge across matching sales lines. | EnumRetailAdvancedChargesDeliveryProrateNoYes (enum) | No | GUPSalesAutomaticSalesDocumentHeaderChargeTableV2EntityGUPSalesAutomaticSalesDocumentHeaderChargeTableEntity | |
RetailConcessionFeeYes or no flag that marks the charge as a concession fee. | EnumNoYes (enum) | No | None | |
RetailConcessionFeeLegacyYes or no flag that marks the charge as a concession fee. This is an older version of the flag.low confidence | EnumNoYes (enum) | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
MarkupIdxPrimary indexModuleCategory,ModuleType,ItemCode,ItemRelation,AccountCode,AccountRelation,MarkupReturn,ReturnRelation,DlvModeCode,DlvModeRelation,RetailChannelCode,RetailChannelRelation,SHA256HashUnique, alternate key.
GUPChargeHeaderIndexPriceComponentCodeName,ModuleType,ModuleCategory,IsGupMarkupAuto,PriceAttributeGroupCombinationRecId,AutoChargesConcurrencyMode,PricingRuleHeaderNot unique.
RulePerfIdx1Partition,DataAreaId,ModuleCategory,ModuleType,IsGupMarkupAuto,PricingRuleHeader,RecId,AutoChargesConcurrencyMode,PriceComponentCodeName,PriceAttributeGroupCombinationRecIdNot unique.
Relations (18)
Each relation joins MarkupAutoTable to another table on the fields shown.
CustGroup→MarkupGroupJoin on
MarkupGroup.Module = MarkupModuleType::Cust,ModuleType = MarkupModuleType::Cust,AccountCode = TableGroupAll::GroupId,AccountRelation = MarkupGroup.GroupIdMany MarkupAutoTable records → zero or one MarkupGroup record
CustTable→CustTableJoin on
ModuleType = MarkupModuleType::Cust,AccountCode = TableGroupAll::Table,AccountRelation = CustTable.AccountNumMany MarkupAutoTable records → zero or one CustTable record
DeliveryCustGroup→MarkupGroupJoin on
MarkupGroup.Module = MarkupModuleType::Cust,ModuleType = MarkupModuleType::Delivery,AccountCode = TableGroupAll::GroupId,AccountRelation = MarkupGroup.GroupIdMany MarkupAutoTable records → zero or one MarkupGroup record
DeliveryCustTable→CustTableJoin on
ModuleType = MarkupModuleType::Delivery,AccountCode = TableGroupAll::Table,AccountRelation = CustTable.AccountNumMany MarkupAutoTable records → zero or one CustTable record
DlvModeGroup→MarkupGroupJoin on
DlvModeRelation = MarkupGroup.GroupId,DlvModeCode = TableGroupAll::GroupId,MarkupGroup.Module = MarkupModuleType::DeliveryMany MarkupAutoTable records → zero or one MarkupGroup record
DlvModeTable→DlvModeJoin on
DlvModeRelation = DlvMode.Code,DlvModeCode = TableGroupAll::TableMany MarkupAutoTable records → zero or one DlvMode record
InventGroup→MarkupGroupJoin on
MarkupGroup.Module = MarkupModuleType::Invent,ItemCode = TableGroupAll::GroupId,ItemRelation = MarkupGroup.GroupIdMany MarkupAutoTable records → zero or one MarkupGroup record
InventTable→InventTableJoin on
ItemCode = TableGroupAll::Table,ItemRelation = InventTable.ItemIdMany MarkupAutoTable records → zero or one InventTable record
ReturnDispositionCode→ReturnDispositionCodeJoin on
ModuleCategory = HeadingLine::Line,MarkupReturn = ReturnCodeType::Disposition,ModuleType = MarkupModuleType::Cust,ReturnRelation = ReturnDispositionCode.DispositionCodeIdMany MarkupAutoTable records → zero or one ReturnDispositionCode record
ReturnReasonCode→ReturnReasonCodeJoin on
ModuleCategory = HeadingLine::Heading,MarkupReturn = ReturnCodeType::Reason,ModuleType = MarkupModuleType::Cust,ReturnRelation = ReturnReasonCode.ReasonCodeIdMany MarkupAutoTable records → zero or one ReturnReasonCode record
VendGroup→MarkupGroupJoin on
MarkupGroup.Module = MarkupModuleType::Vend,ModuleType = MarkupModuleType::Vend,AccountCode = TableGroupAll::GroupId,AccountRelation = MarkupGroup.GroupIdMany MarkupAutoTable records → zero or one MarkupGroup record
VendTable→VendTableJoin on
ModuleType = MarkupModuleType::Vend,AccountCode = TableGroupAll::Table,AccountRelation = VendTable.AccountNumMany MarkupAutoTable records → zero or one VendTable record
RetailChannelGroup→RetailMarkupAutoChannelGroupJoin on
RetailChannelRelation = RetailMarkupAutoChannelGroup.RetailChannelRelation,RetailChannelCode = TableGroupAll::GroupIdMany MarkupAutoTable records → zero or one RetailMarkupAutoChannelGroup record
RetailChannelTable→RetailChannelTableJoin on
RetailChannelRelation = RetailChannelTable.RetailChannelId,RetailChannelCode = TableGroupAll::TableMany MarkupAutoTable records → zero or one RetailChannelTable record
GUPPricingRuleHeader→GUPPricingRuleJoin on
PricingRuleHeader = GUPPricingRule.RecIdZero or one MarkupAutoTable record → exactly one GUPPricingRule record
GUPPricingRuleLine→GUPPricingRuleJoin on
PricingRuleLine = GUPPricingRule.RecIdZero or one MarkupAutoTable record → exactly one GUPPricingRule record
GUPPriceComponentCode→GUPPriceComponentCodeJoin on
PriceComponentCodeName = GUPPriceComponentCode.NameMany MarkupAutoTable records → exactly one GUPPriceComponentCode record
GUPPriceComponentCodePriceAttributeGroupCombination→GUPPriceComponentCodePriceAttributeGroupCombinationJoin on
PriceAttributeGroupCombinationRecId = GUPPriceComponentCodePriceAttributeGroupCombination.RecIdMany MarkupAutoTable records → exactly one GUPPriceComponentCodePriceAttributeGroupCombination record
Get this data out
Tables are not exposed directly. These public entities read from MarkupAutoTable; use one of them in Power BI, Power Platform or a data management project.
GUPSalesAutomaticSalesDocumentHeaderChargeTableV2Entity· 5 fields from this tableGUPSalesAutomaticSalesDocumentLineChargeTableV2Entity· 5 fields from this tableGUPSalesAutomaticSalesDocumentHeaderChargeTableEntity· 5 fields from this tableGUPSalesAutomaticSalesDocumentLineChargeTableEntity· 5 fields from this tableGUPSalesAutomaticSalesDocumentLineChargeV2Entity· 1 field from this tablePurchAutomaticPurchaseDocumentHeaderChargeV2Entity· 5 fields from this tablePurchAutomaticPurchaseDocumentLineChargeV2Entity· 7 fields from this tableGUPSalesAutomaticSalesDocumentHeaderChargeEntity· 1 field from this tableGUPSalesAutomaticSalesDocumentHeaderTaxChargeEntity· 1 field from this tableGUPSalesAutomaticSalesDocumentLineChargeEntity· 1 field from this tableSalesAutomaticSalesDocumentHeaderChargeEntity· 4 fields from this tableSalesAutomaticSalesDocumentHeaderTaxChargeEntity· 4 fields from this table
Need help with MarkupAutoTable in a report, an integration or a migration? Talk to Dr Dynamics.