1
我有记录类型“XYZ”,其中有一个名为“奖励区域”的字段,其类型为list/record。 “奖励区域”是类型自定义列表,并且是一个下拉控件。我们如何检索Netsuite中的自定义列表的值(下拉列表)
使用Suitetalk如何从那个下拉菜单中检索这些值?
谢谢
我有记录类型“XYZ”,其中有一个名为“奖励区域”的字段,其类型为list/record。 “奖励区域”是类型自定义列表,并且是一个下拉控件。我们如何检索Netsuite中的自定义列表的值(下拉列表)
使用Suitetalk如何从那个下拉菜单中检索这些值?
谢谢
我认为像this应该工作。它用于将返回的internalId的结果转换为实际的文本类型,您可能能够以另一种方式利用它。也许你可以创建一个类似这样的查找列表(C#):
public Dictionary<string, Dictionary<long, string>> getCustomFieldLists()
{
return
nsService.search(new CustomListSearch())
.recordList.Select(a => (CustomList) a)
.ToDictionary(a => a.name,
a => a.customValueList.customValue
.ToDictionary(b => b.valueId, c => c.value));
}
var valueLookup = getCustomFieldLists()["award area"];