Skip to main content
Version: 1.5.1

Configure Opportunities

Opportunity stages


Prior to the start of the work, you can configure opportunity stages by adding the new stages or editing the existing ones. The "out-of-the-box" CRM application provides default opportunity stages. You can find their description in the Process Opportunities article.

To create an opportunity stage, complete the steps below:

  1. Navigate to CRM → Settings → Opportunity Stages.
  2. Click New and fill in the fields.
  3. Click Save or Save and exit to apply the changes.

Opportunity Stage form fields

FieldMandatoryDescription
NameYAdd the title of the opportunity stage.
Minimum probability of opportunity, %NSpecify the minimum probability of closing the deal in percentage for the opportunity to take this stage.
Customer centric stageNSpecify the customer centric stage, in which this opportunity stage is included.

Task chains


The tasks can be created automatically when the responsible employee moves the opportunity to a new sales stage. It allows for automation of business processes. Use task templates to configure this system.

To create an opportunity task template, complete the steps below:

  1. Navigate to CRMSettingsTask Chains.
  2. Click New and fill in the fields.
  3. Click Save or Save and exit to apply the changes.

Opportunity Task Template form fields

FieldMandatoryDescription
ActiveNSelect the checkbox to make the template active. An active template automatically creates tasks when the opportunitiy is moved to the specified initiating stage.
NameYAdd the title of the task template.
TableYThe table, to which the task created from this template is added. The field is filled in automatically with the value Task (crm_task).
DescriptionNAdd the description of the template.
Task templateN

Configure the values for the fields of the task created from this template. You can only specify the values for the fields of the specified Table.

You can read about the Task form in the Related Actions article.

Execute actionNSelect the checkbox to run a script specified in the Action field when the task is created from this template.
ActionY

Specify the script to run when a task is created from this template.

The Action field is only available if the Execute action checkbox is selected.

Sales directionYSpecify the sales direction the opportunities of which this template should be applied to.
Initiating stageNSpecify the opportunity stage, the transition to which initiates the creation of the task from this template.
Time for completion in workdaysYSpecify the time to complete the task created from this template.
Sort orderNSpecify the order of the task in the task chain. This number does not affect the execution order, but you can use it to sort task templates in the list.
Next task templateNSpecify the template that should be used to create the next task in the chain after the task is created from the current template.

Script actions


You can configure the scripts that should be ran when a task is created from a template. It allows for the automation of the opportunity processing.

To create a CRM Script Action, complete the steps below:

  1. Navigate to CRM → Settings → Script Actions.
  2. Click New and fill in the fields.
  3. Click Save or Save and exit to apply the changes.

CRM Script Action form fields

FieldMandatoryDescription
NameNAdd the title of the script action to identify it on the Opportunity Task Template form.
ActiveNSelect the checkbox if the script action is active. An active script action can be selected on the Opportunity Task Template form.
DescriptionNAdd the description of the script action.
ScriptNAdd the script action. You can use methods of the Server-Side API for the script configuration.
Action script example
(function executeCRMAction(opportunity, crmTask, employee) {
opportunity.additional_comments = "Comment was added by CRM Action Script";
opportunity.update();

crmTask.additional_comments = "Comment was added by CRM Action Script";
crmTask.update();

crmTask.additional_comments = employee.display_name;
crmTask.update();
})(opportunity, crmTask, employee);