moving order programmatically v13

Vote:
 

Is there a way to programmatically move an order from one customer to another?

#254817
May 14, 2021 14:43
Vote:
 

Yes, It's possible, you have to retrieve the other customer contact and assign it's PrimaryKeyId as below:

order.CustomerId = customerContact.PrimaryKeyId ?? Guid.Empty;
order.CustomerName = customerContact.FullName;
order.AcceptChanges();
#254818
May 14, 2021 15:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.