Bitrix24 REST API

crm.deal.update

crm.deal.update(id, fields)

Updated the specified (existing) deal.

Parameters

Parameter Description
id Specifies the deal ID.
fields Specifies an array of the fields to update (see the example below). Each field can be one of those returned by crm.productrow.fields.

Example

<script type="text/javascript">
	var id = prompt("Enter the deal ID");
		BX24.callMethod(
			"crm.deal.update", 
			{ 
				id: id,
				fields:
				{ 
					"STAGE_ID": "NEGOTIATION",  
					"PROBABILITY": 70
				}				
			}, 
			function(result) 
			{
				if(result.error())
					console.error(result.error());
				else
				{
					console.info(result.data());						
				}
			}
		);	
</script>

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