Table
CustQuotationSalesLink
Sales quotation - sales order relation table
Links a quotation in the quotation journal to the sales order that relates to it. It stores the quotation and order IDs, the customer and invoice accounts, and the delivery name and address. The key is the original sales order ID, the date and the quotation ID.
- Table name
CustQuotationSalesLink- Module
Sales and marketing- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
QuotationBasic- Primary index
RecId- Replacement key
origSalesIdx- Key fields
origSalesId, quotationDate, quotationId- Model
Foundation
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
origSalesIdThe original sales order linked to the quotation. | String (20)SalesIdOrig | No | SalesTable.SalesId | None |
quotationDateDate of the quotation journal record. | DateTransDate | Yes | None | |
quotationIdID of the sales quotation. | String (20)QuotationIdBase | Yes | SalesQuotationTable.QuotationId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
deliveryNameName of the delivery recipient. | String (160)CustName | No | None | |
DeliveryPostalAddressDelivery address, pointing to a postal address record. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
invoiceAccountCustomer account that receives the invoice. | String (20)CustInvoiceAccount | No | CustTable.AccountNum | None |
orderAccountCustomer account that placed the order. | String (20)CustAccount | No | CustTable.AccountNum | None |
origQuotationIdThe original sales quotation. | String (20)QuotationIdBase | No | SalesQuotationTable.QuotationId | None |
parmIdIdentifier of a parameter set used when the record was processed.low confidence | String (20)ParmId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
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 | |
salesIdThe sales order linked to the quotation. | String (20)SalesIdBase | No | SalesTable.SalesId | 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 (4)
origSalesIdxReplacement keyorigSalesId,quotationDate,quotationIdUnique, alternate key.
origQuotationIdxNot unique.
quotationIdxNot unique.
DeliveryPostalAddressIdxNot unique.
Relations (8)
Each relation joins CustQuotationSalesLink to another table on the fields shown.
custQuotationJour→CustQuotationJourJoin on
salesId = CustQuotationJour.SalesId,quotationId = CustQuotationJour.QuotationId,quotationDate = CustQuotationJour.QuotationDateMany CustQuotationSalesLink records → exactly one CustQuotationJour record
DeliveryPostalAddress_FK→LogisticsPostalAddressJoin on
DeliveryPostalAddress = LogisticsPostalAddress.RecIdMany CustQuotationSalesLink records → zero or one LogisticsPostalAddress record
InvoiceCustomer→CustTableJoin on
invoiceAccount = CustTable.AccountNumMany CustQuotationSalesLink records → zero or one CustTable record
OrderCustomer→CustTableJoin on
orderAccount = CustTable.AccountNumMany CustQuotationSalesLink records → zero or one CustTable record
OriginSalesQuotationTable→SalesQuotationTableJoin on
origQuotationId = SalesQuotationTable.QuotationIdMany CustQuotationSalesLink records → zero or one SalesQuotationTable record
OriginSalesTable→SalesTableJoin on
origSalesId = SalesTable.SalesIdMany CustQuotationSalesLink records → zero or one SalesTable record
RenameSalesQuotationTable→SalesQuotationTableJoin on
quotationId = SalesQuotationTable.QuotationIdCardinality not set in the metadata.
RenameSalesTable→SalesTableJoin on
salesId = SalesTable.SalesIdCardinality not set in the metadata.
Get this data out
No public entity reads from CustQuotationSalesLink. Its data is only reachable through the application, a custom entity or a database export.
Need help with CustQuotationSalesLink in a report, an integration or a migration? Talk to Dr Dynamics.