Bitrix24 REST API

crm.lead.update

crm.lead.update(id, fields)

Updates the specified (existing) lead.

Parameters

Parameter Description
id Specifies the lead ID.
fields An array in format array("field"=>"value"[, ...]) containing values for the fields that need to be updated. The fields can be one or more of those returned by crm.lead.fields.
params Set of parameters. REGISTER_SONET_EVENT - performs registration of a change event in a lead in the Activity Stream. The lead's Responsible person will also receive notification.

Example

	var id = prompt("Enter ID");
BX24.callMethod(
	"crm.lead.update", 
	{ 
		id: id,
		fields:
		{ 
			"STATUS_ID": "IN_PROCESS",  
			"CURRENCY_ID": "USD", 
			"OPPORTUNITY": 15500	
		},
		params: { "REGISTER_SONET_EVENT": "Y" }		
	}, 
	function(result) 
	{
		if(result.error())
			console.error(result.error());
		else
		{
			console.info(result.data());						
		}
	}
);


User comments

Comments by users are not official documentation. Responsibility for use of the comments are born by users themselves.

The user comments section is not intended as a request box or training area, but rather for specific usage examples. For more general inquiries, please refer to link.

Comments may be added only by registered users and appear after moderation.
© 2001-2017 Bitrix, Inc. Bitrix® is a registered trademark of Bitrix, Inc. Powered by Bitrix Site Manager