Hello all,
I would like to search customer record based on given customer name. Given below is my code it says" The XXX is invalid". Can anyone help me?
int TaskID = (int)oSS.GetType().InvokeMember("nLookupTask", BindingFlags.InvokeMethod, null, oSS, new object[] { "AR_Customer_ui" });
oSS.GetType().InvokeMember("nSetProgram", BindingFlags.InvokeMethod, null, oSS, new object[] { TaskID });
m_object = pvx.GetType().InvokeMember("NewObject", BindingFlags.InvokeMethod, null, pvx, new object[] { "AR_Customer_svc", oSS });
using (DispatchObject oARCustomer = new DispatchObject())
{
//Tried to set key and set index to "KNAME" but not able to give me same error " The XXX is invalid"
string name = ConfigurationManager.AppSettings["CustomerName"].ToString();
retVal = oARCustomer.InvokeMethod("nFind", name);
}