Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
contract Class (CrmService)
Collapse the table of content
Expand the table of content

contract Class (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Represents an agreement to provide customer service during specified coverage dates, for a specified number of cases or an amount of time.

For a list of methods and messages that operate on this class, see Contract Entity Capabilities.

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

ConstructorDescription
contractInitializes a new instance of the contract class.

PropertyDescription
activeonGets or sets the date and time when the contract becomes active.
allotmenttypecodeGets or sets the type of allotment that the contract supports.
billingcustomeridGets or sets the ID of the account or contact to which the contract is to be billed.
billingendonGets or sets the date and time when the billing period ends.
billingfrequencycodeGets or sets how often the customer or account is to be billed.
billingstartonGets or sets the date and time when the billing period begins.
billtoaddressGets or sets the address to bill for contract charges.
cancelonGets the date when the contract was canceled.
contractidGets or sets the ID of the contract.
contractlanguageGets or sets the description of the contract.
contractnumberGets or sets the system-generated contract identification number.
contractservicelevelcodeGets or sets the response level or level of service specified for the contract.
contracttemplateabbreviationGets the abbreviation of the contract template name.
contracttemplateidGets or sets the ID of the template associated with the contract.
createdbyGets the ID of the user who created the contract.
createdonGets the date and time when the contract was created.
createdonbehalfbyGets the ID of the proxy user who created the contract record.
customeridGets or sets the ID of the account or contact associated with the contract.
durationGets the calculated duration of the contract in days.
effectivitycalendarGets or sets the days of the week and times during which customer service support is available for the duration of the contract.
exchangerateGets the exchange rate for the currency associated with the contact with respect to the base currency.
expiresonGets or sets the date when the contract expires.
importsequencenumberGets or sets the ID of the data import or data migration that created this record.
modifiedbyGets the ID of the user who last modified the contract.
modifiedonGets the date and time when the contract was last modified.
modifiedonbehalfbyGets the ID of the proxy user who last modified the contract.
netpriceGets the sum of all net values calculated on the contract lines.
netprice_baseGets the base-currency equivalent for the sum of all net values calculated on the contract lines.
originatingcontractGets or sets the ID of the original contract from which this current contract was derived.
overriddencreatedonGets or sets the date and time that the record was migrated.
owneridGets or sets the ID of the user or team that owns the contract.
owningbusinessunitGets the ID of the business unit that owns the contract.
serviceaddressGets or sets the ID of the address at which service is to be provided.
statecodeGets the status of the contract.
statuscodeGets or sets the reason for the status of the contract.
timezoneruleversionnumberFor internal use only.
titleGets or sets the title of the contract.
totaldiscountGets the total of all discounts specified on the contract lines.
totaldiscount_baseGets the base-currency equivalent of the total for all discounts specified on the contract lines.
totalpriceGets the total price of the contract.
totalprice_baseGets the total price base of the contract.
transactioncurrencyidGets or sets the ID for the currency associated with the contract.
usediscountaspercentageGets or sets a value that indicates whether the discount is a percentage or a monetary amount.
utcconversiontimezonecodeGets or sets the time zone code used when the record was created.

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. 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.


Show:
© 2015 Microsoft