简体   繁体   English

NetSuite REST 服务 - 公司地址

[英]NetSuite REST Services - Company Address

I am working on external application to pull data from NetSuite using NetSuite's REST services.我正在开发外部应用程序以使用 NetSuite 的 REST 服务从 NetSuite 中提取数据。 Unable to find the way to pull Company Address.无法找到提取公司地址的方法。 Please respond if you the way.请回复,如果你的方式。

The Company's address would be present in NetSuite's Company Information section (ie navigate to Setup --> Company --> Company Information).公司地址将出现在 NetSuite 的公司信息部分(即导航至设置 --> 公司 --> 公司信息)。 If you are using a NetSuite Restlet script to pull Company address, you need to use "N/config" module.如果您使用 NetSuite Restlet 脚本来拉取公司地址,则需要使用“N/config”模块。

So using the N/config module, load the company information record:于是使用 N/config 模块,加载公司信息记录:

var companyInfo = config.load({
    type: config.Type.COMPANY_INFORMATION
}); 

// then get value of Company address

var companyAddress = companyInfo.getValue({
    fieldId: 'mainaddress_text'
});

return companyAddress;       // return the address in Restlet script

Hope this helps.希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM