Documentation

crm.deal.list

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

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>
© «Bitrix24», 2001-2022
Up