Welcome to the Sage 100 Support Group on Community Hub! Available 24/7, the Forums are a great place to ask and answer product questions, as well as share tips and tricks with Sage peers, partners, and pros.
using (DispatchObject soObject = new DispatchObject(pvx.InvokeMethod("NewObject", "SO_Invoice_bus", oSS.GetObject()))) {
soObject.InvokeMethod("nSetKeyValue", new object[] { "InvoiceNo$", strRefNumber });
int rt = (int)soObject.InvokeMethod("nFind…