Export (0) Print
Expand All
Expand Minimize

lead Class (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Represents a prospect or potential sales opportunity.

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

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

ConstructorDescription
leadInitializes a new instance of the lead class.

Instance PropertyDescription
address1_addressidGets or sets the ID for address 1.
address1_addresstypecodeGets or sets the type of address for address1 for example, billing address, shipping address, or primary address.
address1_cityGets or sets the city name in address 1.
address1_countryGets or sets the country or region name in address 1.
address1_countyGets or sets the county name in address 1.
address1_faxGets or sets the fax number associated with address 1.
address1_latitudeGets or sets the latitude associated with address 1.
address1_line1Gets or sets the first line for entering address 1 information.
address1_line2Gets or sets the second line for entering address 1 information.
address1_line3Gets or sets the third line for entering address 1 information.
address1_longitudeGets or sets the longitude associated with address 1.
address1_nameGets or sets the name to enter for address 1.
address1_postalcodeGets or sets the ZIP Code or postal code in address 1.
address1_postofficeboxGets or sets the post office box number in address 1.
address1_shippingmethodcodeGets or sets the shipping method for address 1.
address1_stateorprovinceGets or sets the state or province in address 1.
address1_telephone1Gets or sets the first telephone number associated with address 1.
address1_telephone2Gets or sets the second telephone number associated with address 1.
address1_telephone3Gets or sets the third telephone number associated with address 1.
address1_upszoneGets or sets the United Parcel Service (UPS) zone for address 1.
address1_utcoffsetGets or sets the UTC offset (the difference between local time and standard Coordinated Universal Time) for address 1.
address2_addressidGets or sets the ID for address 2.
address2_addresstypecodeGets or sets the type of address for address 2 (for example, billing address, shipping address, or primary address).
address2_cityGets or sets the city name in address 2.
address2_countryGets or sets the country or region name in address 2.
address2_countyGets or sets the county name in address 2.
address2_faxGets or sets the fax number associated with address 2.
address2_latitudeGets or sets the latitude associated with address 2.
address2_line1Gets or sets the first line for entering address 2 information.
address2_line2Gets or sets the second line for entering address 2 information.
address2_line3Gets or sets the third line for entering address 2 information.
address2_longitudeGets or sets the longitude associated with address 2.
address2_nameGets or sets the name to enter for address 2.
address2_postalcodeGets or sets the ZIP Code or postal code in address 2.
address2_postofficeboxGets or sets the post office box number in address 2.
address2_shippingmethodcodeGets or sets the shipping method for address 2.
address2_stateorprovinceGets or sets the state or province in address 2.
address2_telephone1Gets or sets the first telephone number associated with address 2.
address2_telephone2Gets or sets the second telephone number associated with address 2.
address2_telephone3Gets or sets the third telephone number associated with address 2.
address2_upszoneGets or sets the United Parcel Service (UPS) zone for address 2.
address2_utcoffsetGets or sets the UTC offset (the difference between local time and standard Coordinated Universal Time) for address 2.
campaignidGets or sets the ID of the source campaign associated with the lead.
companynameGets or sets the name of the company with which the lead is associated.
createdbyGets the ID for the user who created the lead record.
createdonGets the date and time when the lead record was created.
createdonbehalfbyGets the ID of the proxy user who created the lead record.
customeridGets or sets the ID for the account or contact associated with the lead.
descriptionGets or sets the description of the lead.
donotbulkemailGets or sets a value that indicates whether to allow sending direct e-mail to the lead.
donotemailGets or sets a value that indicates whether to allow sending e-mail to the lead.
donotfaxGets or sets a value that indicates whether to allow sending fax transmittals to the lead.
donotphoneGets or sets a value that indicates whether to allow phone calls to the lead.
donotpostalmailGets or sets a value that indicates whether to allow sending postal mail to the lead.
donotsendmmGets or sets a value that indicates whether to allow sending marketing mail to the lead.
emailaddress1Gets or sets the first e-mail address for the lead.
emailaddress2Gets or sets the second e-mail address for the lead.
emailaddress3Gets or sets the third e-mail address for the lead.
estimatedamountGets or sets the estimated value of the opportunity generated from the lead.
estimatedamount_baseGets the base currency equivalent of the estimated value for the opportunity generated from the lead.
estimatedclosedateGets or sets the estimated date on which the opportunity that was generated from the lead is expected to close.
estimatedvalueGets or sets the estimated value of the opportunity that was generated from the lead.
exchangerateGets the exchange rate for the currency associated with the lead and the base currency.
faxGets or sets the fax number for the lead.
firstnameGets or sets the first name for the lead.
fullnameGets the full name for the lead.
importsequencenumberGets or sets the ID of the data import or data migration that created this record.
industrycodeGets or sets the type of industry with which the company or organization of the lead is associated.
jobtitleGets or sets the job title of the lead.
lastnameGets or sets the last name for the lead.
lastusedincampaignGets or sets the date and time when the lead was last contacted as a part of a marketing campaign.
leadidGets or sets the ID of the lead.
leadqualitycodeGets or sets the quality of the lead for example, Hot.
leadsourcecodeGets or sets the source of the lead.
masteridGets the ID of the master lead for merge.
mergedGets a value that indicates whether the account has been merged with a master lead.
middlenameGets or sets the middle name for the lead.
mobilephoneGets or sets the mobile phone number for the lead.
modifiedbyGets the ID for the user who last modified the lead record.
modifiedonGets the date and time when the lead record was last modified.
modifiedonbehalfbyGets the ID of the proxy user who last modified the lead.
numberofemployeesGets or sets the number of employees in the lead's company.
overriddencreatedonGets or sets the date and time that the record was migrated.
owneridGets or sets the ID for the user or team that owns the lead record.
owningbusinessunitGets the ID of the business unit that owns the lead.
pagerGets or sets the pager number for the lead.
participatesinworkflowGets or sets a value that indicates whether the lead participates in workflow rules.
preferredcontactmethodcodeGets or sets the preferred contact method for the lead.
prioritycodeGets or sets the priority of the lead.
revenueGets or sets the revenue amount for the lead.
revenue_baseGets the base currency equivalent of the revenue amount for the lead.
salesstagecodeGets or sets the current stage of the sales process for the lead.
salutationGets or sets the salutation for correspondence with the lead.
sicGets or sets the Standard Industrial Classification (SIC) code for the lead.
statecodeGets the status of the lead.
statuscodeGets or sets the reason for the status of the lead.
subjectGets or sets the subject associated with the lead.
telephone1Gets or sets the first telephone number for the lead.
telephone2Gets or sets the second telephone number for the lead.
telephone3Gets or sets the third telephone number for the lead.
timezoneruleversionnumberFor internal use only.
transactioncurrencyidGets or sets the ID of the currency associated with the lead.
utcconversiontimezonecodeGets or sets the time zone code in use when the record was created.
websiteurlGets or sets the Web site URL for the lead.
yomicompanynameGets or sets the hiragana phonetic guide or katakana phonetic guide for the company name with which the lead is associated, used for Yomi sorting.
yomifirstnameGets or sets the hiragana or katakana phonetic guide for the lead first name, used for Yomi sorting
yomifullnameGets the hiragana or hatakana phonetic guide for the lead full name, used for Yomi sorting
yomilastnameGets or sets the hiragana or katakana phonetic guide for the lead last name, used for Yomi sorting
yomimiddlenameGets or sets the hiragana or katakana phonetic guide for the lead middle name, used for Yomi sorting

Remarks

Leads will be converted into accounts, contacts, or opportunities if they are qualified. Otherwise, they are deleted or archived.

For more information about entities and attributes, see Using the Metadata Browser and 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.

Requirements

Web Service: CrmService

See Also

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft