Documentation

crm.lead.fields

Scope: catalog Permissions: all

crm.lead.fields()

Returns the lead fields description, including user fields.

Parameters

No parameters.

Example

BX24.callMethod(
	"crm.lead.fields", 
	{}, 
	function(result) 
	{
		if(result.error())
			console.error(result.error());
		else
			console.dir(result.data());
	}
);

Fields

Field DescriptionTypeNote
ADDRESS Contact addressstring
ADDRESS_2 Second page of the addressstringIn some countries it is customary to split an address into 2 parts
ADDRESS_CITY Citystring
ADDRESS_COUNTRY Countrystring
ADDRESS_COUNTRY_CODE Country codestring
ADDRESS_POSTAL_CODE Postal codestring
ADDRESS_PROVINCE Provincestring
ADDRESS_REGION Regionstring
ASSIGNED_BY_ID Associated with user by IDuser
BIRTHDAY Date of birthdate
COMMENTS Commentsstring
COMPANY_ID Linking a contact to a companycrm_companyRead only
COMPANY_TITLE Name of company, associated with a leadcrm_company
CONTACT_ID Linking a lead to a contactcrm_contact Read only
CONTACT_IDS Linked contact IDcrm_contactMultiple.
You can pass array with contacts when using crm.deal.update and crm.deal.add. This field is unavailable in methods crm.deal.list and crm.deal.get and you need to use crm.deal.contact.items.get for getting list of contacts.
To clear the field, use crm.deal.contact.items.delete, to replace the value, use crm.deal.contact.items.set.
CREATED_BY_ID Who createduserRead only
CURRENCY_IDCurrency IDcrm_currency
DATE_CLOSEDDate closeddatetimeRead only
DATA_CREATE Creation datedatetimeRead only
DATA_MODIFY Date modifieddatetimeRead only
EMAIL E-mail addresscrm_multifieldMultiple
HAS_MAIL E-mail field fill-up checkcharRead only
HAS_PHONE Telephone field fill-up checkcharRead only
HONORIFIC Request typecrm_status
ID Contact ID integerRead only
IM Messengerscrm_multifieldMultiple
IS_RETURN_CASTOMER Repeat lead attributecharRead only
LAST_NAMELast namestringCan be set as required.
MODIFY_BY_ID Last modification author IDuserRead only
MOVED_BY_ID Identifier for moving item to the current stageuserRead only
MOVED_TIME Date when item was moved to current stageuserRead only
NAME NamestringRequired
OPENED Accessible for allchar
OPPORTUNITYEstimated amountdouble
ORIGINATOR_ID Data source IDstringUsed only to link to to an external source.
ORIGIN_ID Element ID in the data sourcestringUsed only to link to to an external source.
ORIGIN_VERSION Original versionstringUsed only for protection from random deletion by an external system. If the data is imported and was not modified in the external system, then such data can be safely edited in CRM and that the next download will not overwrite the data.
PHONE Contact telephonecrm_multifieldMultiple
POST Positionstring
SECOND_NAME Second namestringRequired
SOURCE_DESCRIPTION Source description?string
SOURCE_ID Source IDcrm_statusStatus from directory. List of possible IDs can be fetched via the method crm.status.list with filter фильтром filter[ENTITY_ID]=SOURCE
STATUS_DESCRIPTION string
STATUS_ID stringNEW -Not processed,
IN_PROCESS – In progress
PROCESSED – Processed
JUNK – Junk lead
CONVERTED – Good lead
STATUS_SEMANTIC_ID string F (failed) – processed unsuccessfully,
S (success) – processed successfully,
P (processing) – processing in progress.
TITLE Lead namestringRequired
UTM_CAMPAIGN Advertisement campaign designationstring
UTM_CONTENT Campaign contentstringFor example, for context announcements.
UTM_MEDIUM Type of trafficstringCPC (announcements), CPM (banners)
UTM_SOURCE Advertisement systemstringGoogle-Adwords and others.
UTM_TERM Campaign search conditionstringFor example, contextual advertising keywords.
WEB URL for contact resourcescrm_multifieldMultiple


© «Bitrix24», 2001-2024