rest - NetSuite REST 服务 - 公司地址
问题描述
我正在开发外部应用程序以使用 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
希望这可以帮助。
推荐阅读
- azure - Kerberos 解密密钥翻转错误
- angular - Observable 内部服务中的更改检测不起作用
- apache-spark - 如何为 Databricks 笔记本设置自动完成功能
- opencv - 在 OpenCV 的回调中使用 shared_ptr/cv::Ptr 作为用户数据
- c# - 将具体实现作为泛型返回
- html - 有没有办法在 CSS 中使用 href="tel"?
- python - 根据是否实例化异步或同步实例返回包装器
- python - 如何搜索项目集合是否在列表中?
- cumulocity - 如何在 Cumulocity Cloud 微服务中启用基于 Prometheus 的日志记录
- awk - 在我的情况下,用于删除与模式匹配的行的 sed 命令不起作用