0
我已经使用NetSuite GUI(Web)在记录类型帐户的Netsuite“测试字段”中添加了一个自定义字段,但是当使用Netsuite API获取帐户数据时,我得到所有内建的字段,但没有得到我的自定义字段。我使用下面的代码来获取帐户数据填充NetSuite自定义字段
public DataTable getAccountSearchBasic()
{
DataTable dtData = new DataTable();
AccountSearchBasic objSearch = new AccountSearchBasic();
try
{
string errorMsg = "";
LoginToService(ref errorMsg);
SearchResult result = _serviceInstance.search(objSearch);
try
{
_serviceInstance.logout();
}
catch (Exception ex)
{
}
List<Account> lstData = new List<Account>();
if (result.status.isSuccess)
{
for (int i = 0; i <= result.recordList.Length - 1; i += 1)
{
lstData.Add((Account)result.recordList[i]);
}
}
dtData = ConvertToDataTable<Account>(lstData);
}
catch (Exception ex)
{
throw ex;
}
return dtData;
}
也请建议我一种方式来获得一个记录(客户,部门,位置)的各个领域(包括自定义),包括从NetSuite公司自己的数据类型,因为我必须展示这些字段在我的映射屏幕上。
在此先感谢。
感谢@Jamieson,与记录列表中的每条记录相关联的customFieldList –