Documentation

crm.activity.list

Scope: catalog Permissions to execute: for all

Returns a list of activities selected by the filter specified as the parameter (to return COMMUNICATIONS, it needs to be specified when performing selection). See the example for the filter notation.

Parameters

See the list method reference for the parameters.

Example

We receive list of contact activities with ID 102 in this example.

	BX24.callMethod(
			"crm.activity.list", 
			{ 
				order:{ "ID": "DESC" },
				filter:
				{ 
					"OWNER_TYPE_ID": 3, 
					"OWNER_ID": 102 
				},
				select:[ "*", "COMMUNICATIONS" ]
			}, 
			function(result) 
			{
				if(result.error())
					console.error(result.error());
				else
				{
					console.dir(result.data());			
					if(result.more())
						result.next();						
				}
			}
		);	

How to filter only universal activities:

/crm.activity.list.json?filter[PROVIDER_ID]=CRM_TODO


© «Bitrix24», 2001-2024