簡體   English   中英

NetSuite REST 服務 - 公司地址

[英]NetSuite REST Services - Company Address

我正在開發外部應用程序以使用 NetSuite 的 REST 服務從 NetSuite 中提取數據。 無法找到提取公司地址的方法。 請回復,如果你的方式。

公司地址將出現在 NetSuite 的公司信息部分(即導航至設置 --> 公司 --> 公司信息)。 如果您使用 NetSuite Restlet 腳本來拉取公司地址,則需要使用“N/config”模塊。

於是使用 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

希望這可以幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM