Documentation

crm.deal.list

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

p>User masks during selection:

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

Parameters

See the list method reference for the parameters.

Example

Example returns data into console. If it is required to return data by other way, then perform your data processing retuned via result.data() and result.error() calls.

<script type="text/javascript">
   BX24.callMethod(
	"crm.deal.list", 
	{ 
		order: { "STAGE_ID": "ASC" },
		filter: { ">PROBABILITY": 50 },
		select: [ "ID", "TITLE", "STAGE_ID", "PROBABILITY", "OPPORTUNITY", "CURRENCY_ID" ]
	}, 
	function(result) 
	{
		if(result.error())
			console.error(result.error());
		else
		{
			console.dir(result.data()); 			
			if(result.more())
				result.next();						
		}
	}
);	
</script>

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-2017, «Bitrix Inc.», 2017