I am doing a custom order placement based on the API data I receive, I have to introduce the new column on the sales_order table whet I have to add them before order save using addData or setNewfield, I am not sure which one to use and how to achieve them
$order = $this->quoteManagement->submit($quot)
$Newfield = ['Newfield' =>'NewfieldValue'];
$order->addData($Newfield);
Or
$order->setNewfield($this->NewfieldDate);
$order->save();
I found this one but not sure why we have to create on quote table. Magento 2 Add extra data to an order
Thanks in advance...