Documentation

crm.productsection.add

crm.productsection.add(fields)

Creates a new product section.

Parameters

Parameter Description
fields Set of fields - is an array ("field"=>"value"[, ...]), containing product section fields values.

Example

	var catalogId = prompt("Enter the catalog ID");
		var sectionId = prompt("Enter the parent section ID (or 0 for the root))");
		var sectionName = prompt("Enter the section name");
		BX24.callMethod(
			"crm.productsection.add", 
			{
				fields:
				{ 
					CATALOG_ID: catalogId,
					NAME: sectionName,
					SECTION_ID: sectionId	
				}
			}, 
			function(result) 
			{
				if(result.error())
					console.error(result.error());
				else
					console.info("New section was created with ID" + 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