Documentation

crm.automation.trigger

Activates Webhook trigger, configured in CRM automation options.

Parameters

Parameter Description
target Target object for automation, specified in TYPENAME_ID format (for example, LEAD_25).
code Unique symbol code for trigger, configured in Automation for a specific status/stage of a document.

Result is returned as true or an error. When detecting several triggers for an entity, specified in the target parameter, the trigger that is activated first, is the one that sets an 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());
}
);


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2019, «Bitrix Inc.», 2019