public string[] doGetEntry(string sSession, string sModule, string sID, string[] sFields)
{
sModule = this.doConvertToProper(sModule);
SugarCRM.get_entry_result oSugarGetEntryRes = oSugarCRM.get_entry(sSession, sModule, sID, sFields);
int iColumns = oSugarGetEntryRes.field_list.Length;
string[] sResults = new string[iColumns];
//Iterate through all the fields
SugarCRM.entry_value[] oSugarEntryVals = oSugarGetEntryRes.entry_list;
SugarCRM.name_value[] oSugarNV = oSugarEntryVals[0].name_value_list;
int iCounter = 0;
foreach (SugarCRM.name_value oSugarVal in oSugarNV)
{
sResults[iCounter] = oSugarVal.value;
iCounter++;
}
return sResults;
}