Documentation

crm.automation.trigger

Scope: catalog Permissions to execute: for all

Activates Webhook trigger, configured in CRM automation.

Parameters

Parameter Description
target Target object for automation, specified as TYPENAME_ID (for example, LEAD_25).
code Unique symbolic code for trigger, configured in Automation for a specific item status/stage.

Result returns true or error. When detecting several triggers, activates the first trigger for the entity specified in the target parameter, specifying earlier entity status.

Example

BX24.callMethod(
	"crm.automation.trigger",
	{
		target: 'LEAD_25'
	},
	function(result) 
	{
		if(result.error())
			console.error(result.error());
		else
			console.dir(result.data());
	}
);


© «Bitrix24», 2001-2024