如何使用 RESTlet 获取 Netsuite 中字段的默认值?
How to get default value of the field in Netsuite using RESTlet?
我正在通过以下 RESTlet 文件函数名称 getFields 获取所有必填字段(标准和自定义)。
https://gist.githubusercontent.com/ganeshprabhus/68a9e5b81e53436bb1d684f857a6c31f/raw/67fe03895f1c31d65c1f283dd51584af45d27c59/NS_Script_2016.2004
我可以获得字段的类型和标签。我想获取字段的默认值。
提前致谢
您应该可以使用:
field_details['Value'] = record.getFieldValue(fieldName);
field_details['Text'] = record.getFieldText(fieldName);
从记录对象中提取这些字段的值和显示文本。 运行 通过客户记录会给你这样的结果:
customform = {object}
Type = {string} select
Label = {string} Custom Form
Value = {number} 23
Text = {string} XX Customer Form
我正在通过以下 RESTlet 文件函数名称 getFields 获取所有必填字段(标准和自定义)。 https://gist.githubusercontent.com/ganeshprabhus/68a9e5b81e53436bb1d684f857a6c31f/raw/67fe03895f1c31d65c1f283dd51584af45d27c59/NS_Script_2016.2004
我可以获得字段的类型和标签。我想获取字段的默认值。
提前致谢
您应该可以使用:
field_details['Value'] = record.getFieldValue(fieldName);
field_details['Text'] = record.getFieldText(fieldName);
从记录对象中提取这些字段的值和显示文本。 运行 通过客户记录会给你这样的结果:
customform = {object}
Type = {string} select
Label = {string} Custom Form
Value = {number} 23
Text = {string} XX Customer Form