Documentation

crm.productsection.update

crm.productsection.update(id, fields)

Updates an existing product section.

Parameters

Parameter Description
id Product section ID.
fields Set of fields - is an array (“updated field"=>”value”[, ...]), where “updated field” can have values, returned by crm.productsection.fields.
Note: to find out the required field format, execute the method crm.productsection.fields to view the retrieved field format.

Example

	var id = prompt("Enter ID");
		var sectionName = prompt("Enter section name");		
		BX24.callMethod(
			"crm.productsection.update", 
			{ 
				id: id,
				fields:
				{ 
					"NAME": sectionName
				}				
			}, 
			function(result) 
			{
				if(result.error())
					console.error(result.error());
				else
				{
					console.info(result.data());						
				}
			}
		);	


© «Bitrix24», 2001-2024
Up