Hi all, I have added a Custom field in Netsuite 'Test Field' of Record Type Account using NetSuite GUI(Web), but when fetching Account data using Netsuite API, I am getting all build in fields but not getting my custom field. I am using below code to get Account data.

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;
}

Also please suggest me a way to get all fields (including custom) of a Record (Account, Department, Location) including their datatypes from NetSuite as I have to show these fields on my mapping screen.

Thanks.

Views: 17

Reply to This

Our Sponsors

Would you like to reach over 70,000 + Risk Professionals? 

REQUEST OUR MEDIA KIT

______________________

Current Partners Include:

    

 

Join GRC Inner Circle - Get Top Risk Resources, Member Support PLUS become our patron

Business Exchange

If your organization delivers products and services that bring value to our members, you are welcome to join our partnership program.

Companies are welcome to setup a business profile page in our Multimedia Business Directory. You will get full control of the page and can include cutting edge possibilities – videos, adverts, presentations, white papers, job offers, Press Releases, product information, company blog, news feeds and more.

CLICK HERE TO APPLY

Our Knowledge Partners

Request our MEDIA KIT

Our Twitter feed

© 2018   Created by Boris Agranovich.   Powered by

Badges  |  Report an Issue  |  Terms of Service