Add
int CSaleOrderUserProps::Add( array arFields );
The method Add creates a new customer profile given the supplied parameters.
Parameters
Parameter | Description |
---|---|
arFields | Associated array containing parameters of the new profile whose keys are
the order parameter names, and values are the parameter values. The following values are possible:
|
Returned values
Returns the ID of the new profile on success or false otherwise.
Example
<? $arFields = array( "NAME" => "Profile 1", "USER_ID" => $USER->GetID(), "PERSON_TYPE_ID" => 2 ); $USER_PROPS_ID = CSaleOrderUserProps::Add($arFields); ?>
© «Bitrix24», 2001-2024