Netsuite Suitetalk API 和 PHP 工具包 - 使用两个过滤器进行客户搜索

Netsuite Suitetalk API and PHP Toolkit - Customer Search with Two Filters

我正在尝试使用 PHP 工具包通过 NetSuite SuiteTalk API 进行搜索。

如果我只使用一个过滤器 - 电子邮件,则搜索有效,但是 returns 添加辅助过滤器(被注释掉的部分)时出现错误。

<?php

require_once '..\PHPToolkit\NetSuiteService.php';

$netsuiteService = new NetSuiteService();

$emailSearch = new SearchStringField();
$emailSearch->operator = "is";
$emailSearch->searchValue = "testing@gmail.com";

//$subsidiarySearch = new SearchEnumMultiSelectField();
//$subsidiarySearch->searchValue = [1];
//$subsidiarySearch->operator = 'anyOf';

$search = new CustomerSearchBasic();
$search->email = $emailSearch;
//$search->subsidiary =$subsidiarySearch;

$searchRequest = new searchRequest();
$searchRequest->searchRecord =$search;

$searchResponse = $netsuiteService->search($searchRequest);

?>

子公司不是枚举。使用 SearchMultiSelect。

搜索值将是 RecordRef。

先创建RecordRef,再赋值给multiSelect的searchValue。