volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

AI OnAI Off

moving order programmatically v13

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
error This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.