How to set a Sales Order custom field after Customer is selected

Hello everyone,

The goal is to set a custom field simultaneously when the Shipping information of the Sales Order is populated upon selecting the Customer.

I tried to accomplish this through customization, but unfortunately, I'm unable to locate the correct method name for capturing the moment when the Customer information is integrated into the Sales Order.

Appreciate any assistance!


Best answer by Zoltan Febert 13 May 2024, 21:33

View original

2 replies

Userlevel 6
Badge +3

Hi @marceloquevedo,

Usually I do it in a RowUpdated event handler, but you can try FieldUpdated as well.

protected virtual void _(Events.RowUpdated<SOOrder> e)
if (e.Row == null || Equals(e.Row.CustomerID, e.OldRow?.CustomerID)) return;

var rowExt = e.Row.GetExtension<YourSOOrderExtension>();
rowExt.UsrYourField = "value";


Thank you @Zoltan Febert I think that is exactly what I needed!


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved