Hi @jmc37,
You could use the following to get the new ID value in the Persist method. Just tested and it worked for me, so I hope it works for you too.
using PX.Data;
using static PX.Objects.AR.CustomerMaint;
namespace PX.Objects.AR
{
public class CustomerMaint_Extension : PXGraphExtension<PX.Objects.AR.CustomerMaint>
{
public static bool IsActive() => true;
public delegate void PersistDelegate();
[PXOverride]
public void Persist(PersistDelegate baseMethod)
{
var cPriceClassID = Base.GetExtension<DefLocationExt>().DefLocation.Current.CPriceClassID;
baseMethod();
}
}
}