我正在尝试在 SCA 应用程序中注册期间更新自定义实体字段。
已发布的 Netsuite 文档表明我应该能够调用:
var webStore = session.getSiteSettings(['displayname', 'id']);
customer = session.getCustomer();
customer.updateProfile({
internalid: internalid,
customfields: {
custentity_registered_site: webstore.id
}
});
但这会抛出有用的 UNEXPECTED_ERROR
有没有人为自定义字段工作?我是在注册后这样做的,所以尽管我可以获得有效的客户内部 ID,但这可能是问题所在。有某种替代语法的运气吗?