Setting State on a new order
Posted: Mon Feb 12, 2024 4:16 am
Is there a way, after casting an order to a dynamic object, to set 'State' on an address as in the screenshot provided?
Free support for custom code within SoftPro's products, monitored by SoftPro employees with a 24-48 hr expected turn time on business days.
https://devforum.softprocorp.com/
Code: Select all
// Get IState object.
IEnumManager enumMgr = ss.GetService<IEnumManager>();
IState state = enumMgr.GetEnum<IState>().Values.Where(t => t.Code == "TX").First();
...
o.SettlementLoction.Place.Address.State = state;