Documentation

crm.requisite.preset.field.add

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

Adds field to a set of fields for a template, linked to requisite.

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());
		}
);


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-2020, «Bitrix Inc.», 2020