Click or drag to resize

Contract Class

Agreement to provide customer service during a specified amount of time or number of cases.
Inheritance Hierarchy
SystemObject
  Entity
    Crm.MSCrmServiceContract

Namespace: Crm.MSCrmService
Assembly: Scripting (in Scripting.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class Contract : Entity, INotifyPropertyChanging, 
	INotifyPropertyChanged

The Contract type exposes the following members.

Constructors
 NameDescription
Public methodContract Default Constructor.
Top
Properties
 NameDescription
Public propertyAccountId Unique identifier of the account with which the contract is associated.
Public propertyActiveOn Enter the date when the contract becomes active.
Public propertyAllotmentTypeCode Type of allotment that the contract supports.
Public propertyAttributes
(Inherited from Entity)
Public propertyBillingAccountId Unique identifier of the account to which the contract is to be billed.
Public propertyBillingContactId Unique identifier of the contact to whom the contract is to be billed.
Public propertyBillingCustomerId Select the customer account or contact to which the contract should be billed to provide a quick link to address and other customer details.
Public propertyBillingEndOn Enter the end date for the contract's billing period to indicate the period for which the customer must pay for a service.
Public propertyBillingFrequencyCode Select the billing schedule of the contract to indicate how often the customer should be invoiced.
Public propertyBillingStartOn Enter the start date for the contract's billing period to indicate the period for which the customer must pay for a service. This defaults to the same date that is selected in the Contract Start Date field.
Public propertyBillToAddress Choose which address to send the invoice to.
Public propertybusiness_unit_service_contracts N:1 business_unit_service_contracts
Public propertyCancelOn Shows the date and time when the contract was canceled.
Public propertyContactId Unique identifier of the contact specified for the contract.
Public propertycontract_activity_parties 1:N contract_activity_parties
Public propertyContract_ActivityPointers 1:N Contract_ActivityPointers
Public propertyContract_Annotation 1:N Contract_Annotation
Public propertyContract_Appointments 1:N Contract_Appointments
Public propertyContract_AsyncOperations 1:N Contract_AsyncOperations
Public propertycontract_billingcustomer_accounts N:1 contract_billingcustomer_accounts
Public propertycontract_billingcustomer_contacts N:1 contract_billingcustomer_contacts
Public propertyContract_BulkDeleteFailures 1:N Contract_BulkDeleteFailures
Public propertycontract_cases 1:N contract_cases
Public propertycontract_connections1 1:N contract_connections1
Public propertycontract_connections2 1:N contract_connections2
Public propertycontract_customer_accounts N:1 contract_customer_accounts
Public propertycontract_customer_contacts N:1 contract_customer_contacts
Public propertyContract_DuplicateBaseRecord 1:N Contract_DuplicateBaseRecord
Public propertyContract_DuplicateMatchingRecord 1:N Contract_DuplicateMatchingRecord
Public propertyContract_Emails 1:N Contract_Emails
Public propertyContract_Faxes 1:N Contract_Faxes
Public propertyContract_Letters 1:N Contract_Letters
Public propertycontract_line_items 1:N contract_line_items
Public propertyContract_MailboxTrackingFolder 1:N Contract_MailboxTrackingFolder
Public propertyContract_Phonecalls 1:N Contract_Phonecalls
Public propertycontract_principalobjectattributeaccess 1:N contract_principalobjectattributeaccess
Public propertyContract_ProcessSessions 1:N Contract_ProcessSessions
Public propertyContract_RecurringAppointmentMasters 1:N Contract_RecurringAppointmentMasters
Public propertyContract_ServiceAppointments 1:N Contract_ServiceAppointments
Public propertyContract_SocialActivities 1:N Contract_SocialActivities
Public propertyContract_SyncErrors 1:N Contract_SyncErrors
Public propertyContract_Tasks 1:N Contract_Tasks
Public propertycontract_template_contracts N:1 contract_template_contracts
Public propertyContractId Unique identifier of the contract.
Public propertyContractLanguage Type additional information about the contract, such as the products or services provided to the customer.
Public propertyContractNumber Shows the number for the contract for customer reference and searching capabilities. You cannot modify this number.
Public propertyContractServiceLevelCode Select the level of service that should be provided for the contract based on your company's definition of bronze, silver, or gold.
Public propertyContractTemplateAbbreviation Shows the abbreviation of the contract template selected when the contract is created.
Public propertyContractTemplateId Choose the contract template that should be used to determine the terms of the contract, such as allotment type, available hours, and billing frequency.
Public propertyCreatedBy Shows who created the record.
Public propertyCreatedOn Shows the date and time when the record was created. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM options.
Public propertyCreatedOnBehalfBy Shows who created the record on behalf of another user.
Public propertycustomer_address_contracts_as_billing_address N:1 customer_address_contracts_as_billing_address
Public propertycustomer_address_contracts_as_service_address N:1 customer_address_contracts_as_service_address
Public propertyCustomerId Select the customer account or contact to provide a quick link to additional customer details, such as address, phone number, activities, and orders.
Public propertyDuration Shows for the duration of the contract, in days, based on the contract start and end dates.
Public propertyEffectivityCalendar Days of the week and times during which customer service support is available for the duration of the contract.
Public propertyEntityImage The default image for the entity.
Public propertyEntityImage_Timestamp 
Public propertyEntityImage_URL 
Public propertyEntityImageId For internal use only.
Public propertyEntityState
(Inherited from Entity)
Public propertyExchangeRate Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency.
Public propertyExpiresOn Enter the date when the contract expires.
Public propertyExtensionData
(Inherited from Entity)
Public propertyFormattedValues
(Inherited from Entity)
Public propertyHasLazyFileAttribute
(Inherited from Entity)
Public propertyId
(Overrides Entity.Id)
Public propertyImportSequenceNumber Unique identifier of the data import or data migration that created this record.
Public propertyItem
(Inherited from Entity)
Public propertyKeyAttributes
(Inherited from Entity)
Public propertyLazyFileAttributeKey
(Inherited from Entity)
Public propertyLazyFileAttributeValue
(Inherited from Entity)
Public propertyLazyFileSizeAttributeKey
(Inherited from Entity)
Public propertyLazyFileSizeAttributeValue
(Inherited from Entity)
Public propertylk_contract_createdonbehalfby N:1 lk_contract_createdonbehalfby
Public propertylk_contract_modifiedonbehalfby N:1 lk_contract_modifiedonbehalfby
Public propertylk_contractbase_createdby N:1 lk_contractbase_createdby
Public propertylk_contractbase_modifiedby N:1 lk_contractbase_modifiedby
Public propertyLogicalName
(Inherited from Entity)
Public propertyModifiedBy Shows who last updated the record.
Public propertyModifiedOn Shows the date and time when the record was last updated. The date and time are displayed in the time zone selected in Microsoft Dynamics CRM options.
Public propertyModifiedOnBehalfBy Shows who last updated the record on behalf of another user.
Public propertyNetPrice Shows the total charge to the customer for the service contract, calculated as the sum of values in the Net field for each existing contract line related to the contract.
Public propertyNetPrice_Base Shows the Net Price field converted to the system's default base currency for reporting purposes. The calculations use the exchange rate specified in the Currencies area.
Public propertyOriginatingContract Choose the original contract that this contract was created from. This information is used to track renewal history.
Public propertyOverriddenCreatedOn Date and time that the record was migrated.
Public propertyOwnerId Enter the user or team who is assigned to manage the record. This field is updated every time the record is assigned to a different user.
Public propertyOwningBusinessUnit Unique identifier of the business unit that owns the contract.
Public propertyOwningTeam Unique identifier of the team who owns the contract.
Public propertyOwningUser Unique identifier of the user who owns the contract.
Public propertyReferencedcontract_originating_contract 1:N contract_originating_contract
Public propertyReferencingcontract_originating_contract N:1 contract_originating_contract
Public propertyRelatedEntities
(Inherited from Entity)
Public propertyRowVersion
(Inherited from Entity)
Public propertyServiceAddress Choose the address for the customer account or contact where the services are provided.
Public propertyservicecontractcontacts_association N:N servicecontractcontacts_association
Public propertyStateCode Shows whether the contract is in draft, invoiced, active, on hold, canceled, or expired. You can edit only the contracts that are in draft status.
Public propertyStatusCode Select the contract's status.
Public propertysystem_user_service_contracts N:1 system_user_service_contracts
Public propertyteam_service_contracts N:1 team_service_contracts
Public propertyTimeZoneRuleVersionNumber For internal use only.
Public propertyTitle Type a title or name for the contract that indicates the purpose of the contract.
Public propertyTotalDiscount Shows the total discount applied to the contract's service charges, calculated as the sum of values in the Discount fields for each existing contract line related to the contract.
Public propertyTotalDiscount_Base Shows the Total Discount field converted to the system's default base currency for reporting purposes. The calculations use the exchange rate specified in the Currencies area.
Public propertyTotalPrice Shows the total service charge for the contract, before any discounts are credited. This is calculated as the sum of values in the Total Price field for each existing contract line related to the contract.
Public propertyTotalPrice_Base Shows the Total Price field converted to the system's default base currency for reporting purposes. The calculations use the exchange rate specified in the Currencies area.
Public propertytransactioncurrency_contract N:1 transactioncurrency_contract
Public propertyTransactionCurrencyId Choose the local currency for the record to make sure budgets are reported in the correct currency.
Public propertyUseDiscountAsPercentage Select whether the discounts entered on contract lines for this contract should be entered as a percentage or a fixed dollar value.
Public propertyuserentityinstancedata_contract 1:N userentityinstancedata_contract
Public propertyUTCConversionTimeZoneCode Time zone code that was in use when the record was created.
Public propertyVersionNumber Version number of the contract.
Top
Methods
 NameDescription
Public methodContains
(Inherited from Entity)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetAttributeValue``1
(Inherited from Entity)
Protected methodGetFormattedAttributeValue
(Inherited from Entity)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetRelatedEntities``1
(Inherited from Entity)
Protected methodGetRelatedEntity``1
(Inherited from Entity)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodSetAttributeValue
(Inherited from Entity)
Protected methodSetRelatedEntities``1
(Inherited from Entity)
Protected methodSetRelatedEntity``1
(Inherited from Entity)
Public methodToEntity``1
(Inherited from Entity)
Public methodToEntityReference
(Inherited from Entity)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetAttributeValue``1
(Inherited from Entity)
Top
Events
Fields
See Also