$el = new CIBlockElement;
$arFields = Array(
"MODIFIED_BY" => $USER->GetID(),
"IBLOCK_SECTION_ID" => $arSections[$key],
"IBLOCK_ID" => $pId,
"NAME" => $code,
"ACTIVE" => "Y"
);
$elID = $el->Add($arFields);