crm.deal.recurring.fields
Scope: crm Permissions: for all
crm.deal.recurring.fields()
The method returns list of settings for recurring deal template with description.
Parameters
No parameters.
Fields
Field | Description | Type | Note |
---|---|---|---|
ID | Record ID in the recurring deal settings table | integer | Read only |
DEAL_ID | deal template ID | integer | Unmodifiable |
BASED_ID | deal ID used to create the template | integer | Unmodifiable |
ACTIVE | Activity flag. Values: Y/N | char | |
NEXT_EXECUTION | Date when the next new deal is created from a template. Calculated by the system based on specified parameters. If value is empty, new deals are not created | date | Read only. |
LAST_EXECUTION | Date when the last new deal was created from a template | date | Read only |
COUNTER_REPEAT | Number of deals created from a template | integer | Read only |
START_DATE | Start date when calculating the next deal creation date. If value is empty, new deals are not created | date | |
CATEGORY_ID | Category that is specified for a deal, created from a template | char | |
IS_LIMIT | Set limit to creating new deals. Values: N - no limits, D - specified limit by date, T - specified limit by the number of new deals | char | |
LIMIT_REPEAT | Maximum number of deals that can be created from this template | integer | Considered if IS_LIMIT equals T |
LIMIT_DATE | limit date, after which deals can be created from this template | date | Considered if IS_LIMIT equals D |
PARAMS | Set of calculation parameters - recurring_params:
|
Example:
BX24.callMethod( "crm.deal.recurring.fields", {}, function(result) { if(result.error()) console.error(result.error()); else console.dir(result.data()); } );
© «Bitrix24», 2001-2024