Am tried to save customer email using customer factory but it throws errors like
“Street Address” is a required value. “Phone Number” is a required value. in Magento 2 when the customer has a valid street and phone number.
Here is code:
$customerDetail = $this->_customerFactory->create()->load($custId);
$customerDetail->setEmail($newEmail);
$customerDetail->save();