/** * Save the new export item with Product Id * * @param $productId * @return Export */ public function saveProductForExport($productId) { $exportItem = $this->_exportFactory->create(); $exportItem->setData('product_id', $productId); try { $exportItem->save(); } catch (\Exception $e) { $this->_logger->addError($e->getMessage()); } return $exportItem; }