Hello All,
Can anyone help me in getting a single record from Sage BOI script. I am using the following code but no data is returned.
int taskId = (int)oSs.InvokeMethod("nLookupTask", "AR_Customer_ui");
oSs.InvokeMethod("nSetProgram", taskId);
using (var arCustSvc = new DispatchObject(pvx.InvokeMethod("NewObject", "AR_Customer_svc", oSs.GetObject())))
{
arCustSvc.InvokeMethod("nSetKeyValue", "ARDivisionNo$", "00");
arCustSvc.InvokeMethod("nSetKeyValue", "CustomerNo$", "0000007");
int returnValue = (int)arCustSvc.InvokeMethod("nFind");
if (returnValue > 0)
{
int retVal = 0;
string str1 = "", str2 = "";
retVal = (int)arCustSvc.InvokeMethod("nGetRecord", str1, str2);
}
}
here retVal is 1, but str1 and str2 is empty.
Is there anything i am doing wrong here?