salesorder Class (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Represents an order, which is a quote that has been accepted.

For a list of methods and messages that operate on this class, see Order Entity (salesorder) Capabilities.

The salesorder class inherits from BusinessEntity. It exposes the following members.

Constructor Description
salesorder Initializes a new instance of the salesorder class.
Instance Property Description
billto_addressid Gets or sets the ID of the billing address.
billto_city Gets or sets the city name in the billing address.
billto_contactname Gets or sets the contact name for the billing address.
billto_country Gets or sets the country/region name in the billing address.
billto_fax Gets or sets the fax number for the billing address.
billto_line1 Gets or sets the first line for entering billing address information.
billto_line2 Gets or sets the second line for entering billing address information.
billto_line3 Gets or sets the third line for entering billing address information.
billto_name Gets or sets the name to enter for the billing address.
billto_postalcode Gets or sets the ZIP Code or postal code in the billing address.
billto_stateorprovince Gets or sets the state or province in the billing address.
billto_telephone Gets or sets the telephone number associated with the billing address.
campaignid Gets or sets the ID of the source campaign associated with the order.
createdby Gets the ID of the user who created the order.
createdon Gets the date and time when the order was created.
createdonbehalfby Gets the ID of the proxy user who created the order.
customerid Gets or sets the ID for the account or contact associated with the order.
datefulfilled Gets or sets the date on which the order was fulfilled.
description Gets or sets the description of the order.
discountamount Gets or sets the discount, as a monetary amount, for the order.
discountamount_base Gets the base currency equivalent of the discount specified as a monetary amount for the order.
discountpercentage Gets or sets the discount, as a percentage, for the order.
exchangerate Gets the exchange rate for the currency associated with the sales order (order) with respect to the base currency.
freightamount Gets or sets the cost of freight for the order.
freightamount_base Gets the base currency equivalent for the cost of freight on the order.
freighttermscode Gets or sets the freight terms for the order.
importsequencenumber Gets or sets the ID of the data import or data migration that created this record.
ispricelocked Gets whether the order pricing is locked.
lastbackofficesubmit Gets or sets the date and time when the order was last submitted to Microsoft Great Plains.
modifiedby Gets the ID of the user who last modified the order.
modifiedon Gets the date and time when the order was last modified.
modifiedonbehalfby Gets the ID of the proxy user who last modified the order.
name Gets or sets the name of the order.
opportunityid Gets or sets the ID of the opportunity with which the order is associated.
ordernumber Gets or sets the order number.
overriddencreatedon Gets or sets the date and time that the record was migrated.
ownerid Gets or sets the ID of the user or team that owns the order.
owningbusinessunit Gets the ID of the business unit that owns the order.
paymenttermscode Gets or sets the payment terms for the order.
pricelevelid Gets or sets the ID of the price list associated with the order.
pricingerrorcode Gets or sets the pricing error for the order.
prioritycode Gets or sets the priority of the order.
quoteid Gets or sets the ID of the quote from which the order was created.
requestdeliveryby Gets or sets the requested delivery date for the order.
salesorderid Gets or sets the ID of the order.
shippingmethodcode Gets or sets the method of shipment for the order.
shipto_addressid Gets or sets the ID of the shipping address.
shipto_city Gets or sets the city name in the shipping address.
shipto_contactname Gets or sets the contact name for the shipping address.
shipto_country Gets or sets the country/region name in the shipping address.
shipto_fax Gets or sets the fax number for the shipping address.
shipto_freighttermscode Gets or sets the freight terms for the shipping address.
shipto_line1 Gets or sets the first line for entering shipping address information.
shipto_line2 Gets or sets the second line for entering shipping address information.
shipto_line3 Gets or sets the third line for entering shipping address information.
shipto_name Gets or sets the name to enter in the shipping address.
shipto_postalcode Gets or sets the ZIP Code or postal code in the shipping address.
shipto_stateorprovince Gets or sets the state or province in the shipping address.
shipto_telephone Gets or sets the telephone number associated with the shipping address.
statecode Gets the status of the order.
statuscode Gets or sets the reason for the status of the order.
submitdate Gets or sets the date on which the order was submitted.
submitstatus Gets or sets the submittal status for the order.
submitstatusdescription Gets or sets the description of the submittal status for the order.
timezoneruleversionnumber For internal use only.
totalamount Gets the total amount for the order.
totalamount_base Gets the base currency equivalent of the total amount for the order.
totalamountlessfreight Gets the total amount minus the freight charges for the order.
totalamountlessfreight_base Gets the base currency equivalent of the total amount minus the freight charges for the order.
totaldiscountamount Gets the total discount for the order.
totaldiscountamount_base Gets the base currency equivalent of the total discount for the order.
totallineitemamount Gets the total line item amount for the order.
totallineitemamount_base Gets the base currency equivalent of the total line item amount for the order.
totallineitemdiscountamount Gets the total line item discount for the order.
totallineitemdiscountamount_base Gets the base  currency equivalent of the total line item discount for the order.
totaltax Gets the total tax for the order.
totaltax_base Gets the base currency equivalent of the total tax on the order.
transactioncurrencyid Gets or sets the ID of the currency associated with the sales order.
utcconversiontimezonecode Gets or sets the time zone code in use when the record was created.
willcall Gets or sets the value that indicates if the sales order products are shipped or picked up by the customer.

Remarks

This table lists only the attributes for a default system. For more information about the entities and attributes in your organization, see the Customization area of the Web application. To view this information in the Customization area, in the Navigation Pane, click Settings, click Customization, and then click Customize Entities. You can change the view to see non-customizable entities.

If you have an on-premise deployment, you can use the Metadata Browser to view the metadata for your organization. For more information, see Using the Metadata Browser.

This entity is customizable.

Requirements

Web Service: CrmService

See Also

Concepts

Tasks

Reference

© 2010 Microsoft Corporation. All rights reserved.