Documentation

crm.contact.userfield.list

Scope: catalog Permissions to execute: for all

crm.contact.userfield.list(order, filter)

Returns list of user custom fields for contacts by filter. Prints information about these fields, only identifier and without a title assigned to the field by the user. If you need a custom field title, the more convenient method is crm.contact.list that prints both standard and custom user fields.

Parameters

Parameter Description
order Sorting fields.
filter Filter fields.

Example

BX24.callMethod(
	"crm.contact.userfield.list", 
	{ 
		order: { "SORT": "ASC" },
		filter: { "MANDATORY": "N" }
	}, 
	function(result) 
	{
		if(result.error())
			console.error(result.error());
		else
		{
			console.dir(result.data()); 			
			if(result.more())
				result.next();						
		}
	}
);


© «Bitrix24», 2001-2024
Up