crm.deal.list
Scope: crm Permissions: for all
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(); } } );
Search by several stages simultaneously:
filter: {"=STAGE_ID": ["C5:NEW", "C5:3", "C5:PREPARATION", "C5:PREPAYMENT_INVOICE", "C5:2", "C5:4"] }
© «Bitrix24», 2001-2024