Documentation

crm.company.list

Returns a list of companies selected by the filter specified as the parameter. See the example for the filter notation.

During selection, use masks:

  • "*" - for selection of all fields (excluding user and multiple fields)
  • "UF_*"- for selection of all user fields (without multiple fields)

Masks for selection of multiple fields are unavailable. To select multiple files, indicate the ones you need in the selection list ("PHONE", "EMAIL" and etc.).

Parameters

See the list method reference for the parameters.

Example

	// Select companies by industry and relationship
		BX24.callMethod(
			"crm.company.list", 
			{ 
				order: { "DATE_CREATE": "ASC" },
				filter: { "INDUSTRY": "MANUFACTURING", "COMPANY_TYPE": "CUSTOMER" },
				select: [ "ID", "TITLE", "CURRENCY_ID", "REVENUE" ]				
			}, 
			function(result) 
			{
				if(result.error())
					console.error(result.error());
				else
				{
					console.dir(result.data());			
					if(result.more())
						result.next();						
				}
			}
		);
		// Find a company by the phone number
		BX24.callMethod(
			"crm.company.list", 
			{ 
				filter: { "PHONE": "555888" },
				select: [ "ID", "TITLE" ]
			}, 
			function(result) 
			{
				if(result.error())
					console.error(result.error());
				else
				{
					console.dir(result.data());			
					if(result.more())
						result.next();						
				}
			}
		);		


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2019, «Bitrix Inc.», 2019