[英]How to complete a Search in NetSuite using Java API?
I have a jar file nsws-2014_1.jar with the bindings for using Netsuite's web services. 我有一个jar文件nsws-2014_1.jar,其中包含使用Netsuite的Web服务的绑定。 I am reading through their examples in the pdf which they have provide online, but the search or querying is confusing.
我正在阅读他们在线提供的pdf中的示例,但是搜索或查询令人困惑。 I would like to complete a query that someone has done in perl, but in java.
我想完成一个有人在perl中但在java中完成的查询。 Can someone help me out?
有人可以帮我吗?
my $query = {
basic => [
{ name => 'customFieldList', value => [
{
name => 'customField',
attr => {
scriptId => 'custentity_hexid',
operator => 'is',
'xsi:type' => 'core_2013_2.platform:SearchStringCustomField'
},
value => $json->{'ServiceOrder'}->{'Id'}
},
],
},
],
};
CustomerSearch customerSrch = new CustomerSearch();
CustomerSearchBasic customerSrchBsc = new CustomerSearchBasic();
SearchStringCustomField custentity_externalid = new SearchStringCustomField();
custentity_externalid.setInternalId("1015");
custentity_externalid.setSearchValue(externalID);
custentity_externalid.setOperator(SearchStringFieldOperator.is);
SearchCustomFieldList searchCustomFieldList = new SearchCustomFieldList();
SearchCustomField[] SearchCustomFieldArray = {custentity_externalid};
searchCustomFieldList.setCustomField(SearchCustomFieldArray);
customerSrchBsc.setCustomFieldList(searchCustomFieldList);
customerSrch.setBasic(customerSrchBsc);
SearchResult searchResult = _service.search(customerSrch);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.