cdf_SalesOrder Table
Data in the cdf_SalesOrder table must meet the migration criteria specified in Data Requirements for Migration. The following table shows all of the attributes in Microsoft CRM that can be migrated from the cdf_SalesOrder table and the respective attribute names and types in the CDF database. The table also shows whether the attribute is required and whether it is used to create a relationship with other entities. For drop-down lists and Boolean attributes, the table shows the valid values and the default value in Microsoft CRM. The last rows of the table list the Microsoft CRM SalesOrder attributes that cannot be migrated using the Microsoft CRM Data Migration Framework.
Microsoft CRM tab name and attribute label | CDF attribute name |
CDF type |
Required or Relationship in CDF | Microsoft CRM values |
Default Microsoft CRM value |
Not on tab | SalesOrderId | int (PK) | Required | ||
StateCode* | int (state) | 0 (Active)
1 (Submitted) 2 (Canceled) |
(0) Active | ||
General tab | |||||
Order ID | OrderNumber | nvarchar (100) | Required | ||
Name | Name | nvarchar (300) | Required | ||
Customer | AccountId | int | Required**, Relationship | ||
AccountIdName*** | nvarchar (160) | ||||
ContactId | int | Required**, Relationship | |||
ContactIdName*** | nvarchar (160) | ||||
Price List | PriceLevelId | int | Relationship | ||
PriceLevelIdName*** | nvarchar (100) | ||||
Detail Amount ($) | TotalLineItemAmount**** | money | |||
Order Discount (%) | DiscountPercentage | decimal 9(10,5) | |||
Order Discount ($) | DiscountAmount | money | |||
Pre-Freight Amount ($) | TotalAmountLessFreight**** | money | |||
Freight Amount ($) | FreightAmount | money | |||
Total Tax ($) | TotalTax**** | money | |||
Total Amount ($) | TotalAmount**** | money | |||
Shipping tab | |||||
Requested Delivery Date | RequestDeliveryBy***** | datetime | |||
Shipping Method | ShippingMethodCode | int (picklist) | |||
ShippingMethodCodeName*** | nvarchar (200) (picklist) | Airborne
DHL FedEx UPS Postal Mail Full Load Will Call |
Null | ||
Payment Terms | PaymentTermsCode | int (picklist) | |||
PaymentTermsCodeName*** | nvarchar (200) (picklist) | Net 30
2%10, Net 30 Net 45 Net 60 |
Null | ||
Freight Terms | FreightTermsCode | int (picklist) | |||
FreightTermsCodeName*** | nvarchar (200) (picklist) | FOB
No Charge |
Null | ||
Description | Description | ntext | |||
Addresses tab | |||||
Name (Bill To) | BillTo_Name | nvarchar (200) | |||
Street 1 | BillTo_Line1 | nvarchar (50) | |||
Street 2 | BillTo_Line2 | nvarchar (50) | |||
Street 3 | BillTo_Line3 | nvarchar (50) | |||
City | BillTo_City | nvarchar (50) | |||
State/Province | BillTo_StateOrProvince | nvarchar (50) | |||
ZIP/Postal Code | BillTo_PostalCode | nvarchar (20) | |||
Country/Region | BillTo_County | nvarchar (50) | |||
Phone | BillTo_Telephone | nvarchar (50) | |||
Fax | BillTo_Fax | nvarchar (20) | |||
Ship To | WillCall | bit | 0 (Address)
1 (Will Call) |
0 | |
Name (Ship To) | ShipTo_Name | nvarchar (200) | |||
Street 1 | ShipTo_Line1 | nvarchar (50) | |||
Street 2 | ShipTo_Line2 | nvarchar (50) | |||
Street 3 | ShipTo_Line3 | nvarchar (50) | |||
City | ShipTo_City | nvarchar (50) | |||
State/Province | ShipTo_StateOrProvince | nvarchar (50) | |||
ZIP/Postal Code | ShipTo_PostalCode | nvarchar (20) | |||
Country/Region | ShipTo_Country | nvarchar (50) | |||
Phone | ShipTo_Telephone | nvarchar (50) | |||
Fax | ShipTo_Fax | nvarchar (20) | |||
Freight Terms | ShipTo_FreightTermsCode | int (picklist) | |||
ShipTo_FreightTermsCodeName*** | nvarchar (200) (picklist) | FOB
No Charge |
Null | ||
Administration tab | |||||
Owner | OwningUser | int | Required, Relationship | ||
OwningUserName*** | nvarchar (255) | ||||
Status Reason | StatusCode* | int (status) | 1 (New)
2 (Pending) |
For StateCode 0, 1 | |
3 (In Progress) | For StateCode 1, 3 | ||||
4 (No Money) | For StateCode 2, 4 | ||||
Opportunity | OpportunityId | int | Relationship | ||
OpportunityIdName*** | nvarchar (300) | ||||
Quote | QuoteId | int | |||
QuoteIdName*** | nvarchar (300) | ||||
Not on tab by default | LastBackOfficeSubmit***** | datetime | |||
PricingErrorCode | int | ||||
PricingErrorCodeName*** | nvarchar (200) (picklist) | ||||
PriorityCode | int (picklist) | ||||
PriorityCodeName*** | nvarchar (200) (picklist) | Default Value | Default Value | ||
SubmitDate***** | datetime | ||||
SubmitStatus | int | ||||
SubmitStatusDescription | ntext | ||||
TotalDiscountAmount**** | money | ||||
TotalLineItemDiscountAmount**** | money | ||||
Not migrated | |||||
CreatedBy | |||||
CreatedOn | |||||
DeletionStateCode | |||||
ModifiedBy | |||||
ModifiedOn | |||||
VersionNumber | |||||
OwnerId | |||||
OwnerIdType | |||||
OwningTeam | |||||
SecurityDescriptor | |||||
VersionNumber |
Table Footnotes
*See StateCode and StatusCode Values.
**Either AccountId or ContactId is required.
***The field is used only in the CDF database; it is not migrated.
****This is a calculated attribute in Microsoft CRM. Because Microsoft CRM calculates the value, data in this attribute is not migrated.
*****Values for all attributes of type datetime must be in Coordinated Universal Time (UTC) format CCYY-MM-DD, where CC is the century (00-99), YY is the year (00-99), MM is the month (01-12), and DD is the day of month (01-31), for example, 2003-09-05. If a time is included, it is migrated as the Greenwich Mean Time (GMT) time.