我正在尝试从给定位置(仓库)搜索 bin 编号 =“1”。我的代码就像
RecordRef[] referLocation = new RecordRef[1] { new RecordRef { } };
referLocation[0].type = RecordType.location;
referLocation[0].internalId = "6";
BinSearch bSearch = new BinSearch();
BinSearchBasic bSBasic = new BinSearchBasic();
SearchStringField strField = new SearchStringField ();
SearchMultiSelectField multiSelect = new SearchMultiSelectField();
multiSelect.searchValue = referLocation;
bSBasic.location = multiSelect;
strField.searchValue = "1";
bSBasic.binNumber = strField;
bSearch.basic = bSBasic;
var response = _service.search(bSearch);
if (response.status.isSuccess)
Console.WriteLine(strField.searchValue + "exists");
else
Console.WriteLine(strField.searchValue + "Not exists");
但即使 bin 编号 = 1 在 te netsuite 中,它也会给出 Not Exists。谁能帮我指出代码中的错误或缺失?谢谢