Documentation

crm.contact.fields

Scope: catalog Permissions to execute: for all

crm.contact.fields()

Returns the description of contact, as well as user fields available to contact.

Parameters

No parameters.

Example

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

Fields

The methods crm.contact.update and crm.contact.add are used to pass an array of companies. The methods crm.contact.list and crm.contact.get do not have this field and the method crm.contact.company.items.get must be used to get list of companies.All fields from crm_status must contain values from selection list. Values can fetched by calling crm.status.list. ce
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
BIRTHDATE Date of birthdate
COMMENTS Commentsstring
COMPANY_ID Associating a contact to a companycrm_companyOutdated. Saved for compatibility.
COMPANY_IDS Associating a contact to several companiescrm_companyMultiple
CREATED_DY_ID Who createduserRead only
DATA_CREATE Creation datedatetimeRead only
DATA_MODIFY Date modifieddatetimeRead only
EMAIL E-mail addresscrm_multifieldMultiple
EXPORT Specifies if the contact is included into export. If N, then it is not possible to upload it.charProtection from employees, who want to steal client database.
FACE_ID Linking to persons from faceid moduleinteger
HAS_MAIL E-mail field fill-up checkcharRead only
HAS_PHONE Telephone field fill-up checkcharRead only
HONORIFIC Request typecrm_statusAll fields for crm_status must contain values from selection lists. These values can be fetched by calling crm.status.list.
ID Contact IDintegerRead only
IM Messengerscrm_multifieldMultiple
LAST_NAME Last namestringRequired
LEAD_ID Lead ID, associated with the contactcrm_leadRead only
MODIFY_BY_ID Last modification author IDuserRead only
NAME NamestringRequired
OPENED Accessible for allchar
ORIGINATOR_ID Data source IDstringUsed only to link to external source.
ORIGIN_ID Element ID in the data sourcestringUsed only to link to 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
PHOTO Contact photofile
POST Positionstring
SECOND_NAME Middle namestringRequired
SOURCE_DISCRIPTION Source descriptionstring
SOURCE_ID Source identifiercrm_statusStatus from directory. List of possible identifiers can be fetched via the method crm.status.list with filter filter[ENTITY_ID]=SOURCE TYPE_ID ID typecrm_statusStatus from directory
UTM_CAMPAIGN Advertisement campaign designationstring
UTM_CONTENT Campaign contentstringFor example, for context announcements.
UTM_MEDIUM Type of trafficstringCPC (announcements), CPM (banners)
UTM_SOURSE Advertisement systemstringYandex-Direct, Google-Adwords and others.
UTM_TERM Campaign search conditionstringFor example, contextual advertising keywords.
WEB URL for contact resourcescrm_multifieldMultiple


© «Bitrix24», 2001-2024
Up