Documentation

crm.requisite.preset.field.add

Scope: catalog Permissions to execute: for all

crm.requisite.preset.field.add(preset, fields)

Adds field to a set of fields for a template, linked to requisite. Set can contain values fetched by the method crm.requisite.preset.field.fields.

Parameters

Parameter Description
presetFields of template, to which the set is linked to.
fieldsDescription for set of fields.

Example

BX24.callMethod(
	"crm.requisite.preset.field.add", 
	{ 
		preset: 
		{
			"ID":1
		},
		fields:
		{
			"FIELD_NAME":"RQ_NAME",
			"FIELD_TITLE":"TEST",
			"IN_SHORT_LIST":"N",
			"SORT":580
		}
	}, 
		function(result) 
		{
			if(result.error())
				console.error(result.error());
			else
				console.info("Field with ID is added to the template set of fields" + result.data());
		}
);


© «Bitrix24», 2001-2024