Bitrix24 REST API

crm.contact.list

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

Parameters

See the list method reference for the parameters.

Example

<script type="text/javascript">
	BX24.callMethod(
			"crm.contact.list", 
			{ 
				order: { "DATE_CREATE": "ASC" },
				filter: { "TYPE_ID": "CLIENT" },
				select: [ "ID", "NAME", "LAST_NAME", "TYPE_ID", "SOURCE_ID" ]
			}, 
			function(result) 
			{
				if(result.error())
					console.error(result.error());
				else
				{
					console.dir(result.data());			
					if(result.more())
						result.next();						
				}
			}
		);	

// Find contact by phone number
		BX24.callMethod(
			"crm.contact.list", 
			{ 
				filter: { "PHONE": "555888" },
				select: [ "ID", "NAME", "LAST_NAME" ]
			}, 
			function(result) 
			{
				if(result.error())
					console.error(result.error());
				else
				{
					console.dir(result.data());			
					if(result.more())
						result.next();						
				}
			}
		);		
</script>


User comments

Comments by users are not official documentation. Responsibility for use of the comments are born by users themselves.

The user comments section is not intended as a request box or training area, but rather for specific usage examples. For more general inquiries, please refer to link.

Comments may be added only by registered users and appear after moderation.
© 2001-2017 Bitrix, Inc. Bitrix® is a registered trademark of Bitrix, Inc. Powered by Bitrix Site Manager