Status stat = nss.login(p).status;
if (stat.isSuccess == true)
{
// Creating the objects needed for the ItemSearchAdvanced
ItemSearchAdvanced isa = new ItemSearchAdvanced();
ItemSearchRow isr = new ItemSearchRow();
ItemSearchRowBasic isrb = new ItemSearchRowBasic();
SearchColumnSelectField[] scsf = new SearchColumnSelectField[1];
SearchColumnSelectField scsf1 = new SearchColumnSelectField();
scsf1.customLabel = "id";
scsf[0] = scsf1;
//Assigning the variables to the required objects.
isrb.internalId = scsf;
isr.basic = isrb;
isa.columns = isr;
// Passing the search to the NetSuiteService Object.
SearchResult sr = new SearchResult();
sr = nss.search(isa);
if (sr.status.isSuccess)
{
Console.Write("Search Successful");
Console.Read();
}
}
No comments:
Post a Comment